benchmarks/scenarios/ember.js
function () {
      _emberMetalDebug.assert('Must pass a valid object to Ember.Binding.disconnect()', !!this._toObj);

      // Remove an observer on the object so we're no longer notified of
      // changes that should update bindings.
      _emberMetalObserver.removeObserver(this._fromObj, this._fromPath, this, 'fromDidChange');

      // If the binding is two-way, remove the observer from the target as well.
      if (!this._oneWay) {
        _emberMetalObserver.removeObserver(this._toObj, this._to, this, 'toDidChange');
      }

      this._readyToSync = false; // Disable scheduled syncs...
      return this;
    }
function () {
      _emberMetalDebug.assert('Must pass a valid object to Ember.Binding.disconnect()', !!this._toObj);

      // Remove an observer on the object so we're no longer notified of
      // changes that should update bindings.
      _emberMetalObserver.removeObserver(this._fromObj, this._fromPath, this, 'fromDidChange');

      // If the binding is two-way, remove the observer from the target as well.
      if (!this._oneWay) {
        _emberMetalObserver.removeObserver(this._toObj, this._to, this, 'toDidChange');
      }

      this._readyToSync = false; // Disable scheduled syncs...
      return this;
    }
function ( ) { _emberMetalDebug . assert ( 'Must pass a valid object to Ember.Binding.disconnect()' , ! ! this . _toObj ) ; // Remove an observer on the object so we're no longer notified of // changes that should update bindings. _emberMetalObserver . removeObserver ( this . _fromObj , this . _fromPath , this , 'fromDidChange' ) ; // If the binding is two-way, remove the observer from the target as well. if ( ! this . _oneWay ) { _emberMetalObserver . removeObserver ( this . _toObj , this . _to , this , 'toDidChange' ) ; } this . _readyToSync = false ; // Disable scheduled syncs... return this ; }
Disconnects the binding instance. Changes will no longer be relayed. You
will not usually need to call this method.
@method disconnect
@return {Ember.Binding} `this`
@public
Disconnects the binding instance . Changes will no longer be relayed . You will not usually need to call this method .