src/Binding.js
function (binding, promise) {
  /** @private */
  this._binding = binding;

  /** @private */
  this._queuedUpdates = [];
  /** @private */
  this._finishedUpdates = [];

  /** @private */
  this._committed = false;
  /** @private */
  this._cancelled = false;

  /** @private */
  this._hasChanges = false;
  /** @private */
  this._hasMetaChanges = false;

  if (promise) {
    var self = this;
    promise.then(Util.identity, function () {
      if (!self.isCancelled()) {
        self.cancel();
      }
    });
  }
}
function (binding, promise) {
  /** @private */
  this._binding = binding;

  /** @private */
  this._queuedUpdates = [];
  /** @private */
  this._finishedUpdates = [];

  /** @private */
  this._committed = false;
  /** @private */
  this._cancelled = false;

  /** @private */
  this._hasChanges = false;
  /** @private */
  this._hasMetaChanges = false;

  if (promise) {
    var self = this;
    promise.then(Util.identity, function () {
      if (!self.isCancelled()) {
        self.cancel();
      }
    });
  }
}
function ( binding , promise ) { /** @private */ this . _binding = binding ; /** @private */ this . _queuedUpdates = [ ] ; /** @private */ this . _finishedUpdates = [ ] ; /** @private */ this . _committed = false ; /** @private */ this . _cancelled = false ; /** @private */ this . _hasChanges = false ; /** @private */ this . _hasMetaChanges = false ; if ( promise ) { var self = this ; promise . then ( Util . identity , function ( ) { if ( ! self . isCancelled ( ) ) { self . cancel ( ) ; } } ) ; } }
Transaction context constructor.
@param {Binding} binding binding
@param {Promise} [promise] ES6 promise
@public
@class TransactionContext
@classdesc Transaction context.
Transaction context constructor .