PageRenderTime 45ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/documentation/appframework/$.bind.md

https://github.com/maoyao/appframework
Markdown | 40 lines | 24 code | 16 blank | 0 comment | 0 complexity | 7f901a40a788cc697a29f86034deb9df MD5 | raw file
  1. #$.bind(object,event,function);
  2. ```
  3. Bind an event to an object instead of a DOM Node
  4. ```
  5. ##Example
  6. ```
  7. $.bind(this,"event",function(){});
  8. ```
  9. ##Parameters
  10. ```
  11. object Object
  12. event String
  13. function Function
  14. ```
  15. ##Returns
  16. ```
  17. undefined
  18. ```
  19. ##Detail
  20. $.bind(object,eventfunction) works the same as $().bind, except you are binding events on JavaScript Objects.
  21. We use this to bind events in the touchLayer and scrolling libraries.
  22. ```
  23. $.bind($.touchLayer, 'orientationchange-reshape', orientationChangeProxy);
  24. ```