Created
January 3, 2011 17:05
-
-
Save publickeating/763691 to your computer and use it in GitHub Desktop.
Proposed addition to expose isForward
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Returns the direction of the binding. If isForward is YES, then the value | |
being passed came from the "from" side of the binding (i.e. the "Binding.path" | |
you named). If isForward is NO, then the value came from the "to" side (i.e. | |
the property you named with "propertyBinding"). You can vary your transform | |
behavior if you are based on the direction of the change. | |
@returns {Boolean} | |
*/ | |
isForward: function() { | |
return this._fromTarget === this._bindingSource; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment