/documentation/appframework/$.bind.md
Markdown | 40 lines | 24 code | 16 blank | 0 comment | 0 complexity | 7f901a40a788cc697a29f86034deb9df MD5 | raw file
- #$.bind(object,event,function);
- ```
- Bind an event to an object instead of a DOM Node
-
- ```
- ##Example
- ```
- $.bind(this,"event",function(){});
-
- ```
- ##Parameters
- ```
- object Object
- event String
- function Function
- ```
- ##Returns
- ```
- undefined
- ```
- ##Detail
- $.bind(object,eventfunction) works the same as $().bind, except you are binding events on JavaScript Objects.
- We use this to bind events in the touchLayer and scrolling libraries.
- ```
- $.bind($.touchLayer, 'orientationchange-reshape', orientationChangeProxy);
- ```