11dop . core . observer = function Observer ( callback , id ) {
22 this . callback = callback
33 this . id = id
4- this . observers = { } // need it for destroy()
4+ this . observers_object = { } // need it for destroy()
55 this . observers_prop = { } // need it for destroy()
66 this . observers_all = { } // need it for destroy()
77}
@@ -20,7 +20,7 @@ dop.core.observer.prototype.observeProperty = function(object, property) {
2020
2121dop . core . observer . prototype . observeObject = function ( object ) {
2222 var path = observerCheckObject ( object , 'observeObject' )
23- return this . observe ( dop . core . getPathId ( path ) , 'observers ' )
23+ return this . observe ( dop . core . getPathId ( path ) , 'observers_object ' )
2424}
2525
2626dop . core . observer . prototype . observeAll = function ( object ) {
@@ -58,11 +58,11 @@ dop.core.observer.prototype.destroy = function() {
5858 }
5959
6060 // Removing observeObject
61- for ( path_id in this . observers ) {
61+ for ( path_id in this . observers_object ) {
6262 path_ids [ path_id ] = true
63- delete data_path [ path_id ] . observers [ this . id ]
64- if ( isEmptyObject ( data_path [ path_id ] . observers ) )
65- delete data_path [ path_id ] . observers
63+ delete data_path [ path_id ] . observers_object [ this . id ]
64+ if ( isEmptyObject ( data_path [ path_id ] . observers_object ) )
65+ delete data_path [ path_id ] . observers_object
6666 }
6767
6868 // Removing observeAll
0 commit comments