torso-bundle.js
function() {
      var resultDeferred = $.Deferred();
      if (this.isDisposed()) {
        var rejectArguments = Array.prototype.slice.call(arguments);
        rejectArguments.push('Data Behavior disposed, aborting.');
        resultDeferred.reject.apply(resultDeferred, rejectArguments);
      } else {
        resultDeferred.resolve.apply(resultDeferred, arguments);
      }
      return resultDeferred.promise();
    }
function() {
      var resultDeferred = $.Deferred();
      if (this.isDisposed()) {
        var rejectArguments = Array.prototype.slice.call(arguments);
        rejectArguments.push('Data Behavior disposed, aborting.');
        resultDeferred.reject.apply(resultDeferred, rejectArguments);
      } else {
        resultDeferred.resolve.apply(resultDeferred, arguments);
      }
      return resultDeferred.promise();
    }
function ( ) { var resultDeferred = $ . Deferred ( ) ; if ( this . isDisposed ( ) ) { var rejectArguments = Array . prototype . slice . call ( arguments ) ; rejectArguments . push ( 'Data Behavior disposed, aborting.' ) ; resultDeferred . reject . apply ( resultDeferred , rejectArguments ) ; } else { resultDeferred . resolve . apply ( resultDeferred , arguments ) ; } return resultDeferred . promise ( ) ; }
Rejects the promise chain if this behavior is already disposed.
@return {jQuery.Promise} that is resolved if the behavior is not disposed and rejects if the behavior is disposed.
@private
Rejects the promise chain if this behavior is already disposed .