Do not compare functions and objects if observeNot is used.
This commit is contained in:
parent
02a973bad1
commit
b00df72760
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue