From b00df7276041082956de42b8170dc97c2a9643ee Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 19 May 2016 01:19:50 +0200 Subject: [PATCH] Do not compare functions and objects if observeNot is used. --- .../app/controllers/_application_controller_generic.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller_generic.coffee b/app/assets/javascripts/app/controllers/_application_controller_generic.coffee index a6ffdcbbd..763826791 100644 --- a/app/assets/javascripts/app/controllers/_application_controller_generic.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller_generic.coffee @@ -1117,7 +1117,7 @@ class App.ObserverController extends App.Controller currentAttributes[key] = object[key] if @observeNot for key, value of object - if !@observeNot[key] && !_.isFunction(value) + if !@observeNot[key] && !_.isFunction(value) && !_.isObject(value) currentAttributes[key] = value if !@lastAttributres