Do not compare functions and objects if observeNot is used.

This commit is contained in:
Martin Edenhofer 2016-05-19 01:19:50 +02:00
parent 02a973bad1
commit b00df72760

View file

@ -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