PageRenderTime 42ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/documentation/appframework/$.unbind.md

https://github.com/maoyao/appframework
Markdown | 40 lines | 24 code | 16 blank | 0 comment | 0 complexity | c496571646816e358234c9b46b00e4ac MD5 | raw file
  1. #$.unbind(object,event,function);
  2. ```
  3. Unbind an event to an object instead of a DOM Node
  4. ```
  5. ##Example
  6. ```
  7. $.unbind(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 $().unbind, except you are unbinding events on JavaScript Objects.
  21. The following will tell the $.touchLayer object to no longer respond to "orientationchange-reshape" events
  22. ```
  23. $.unbind($.touchLayer, 'orientationchange-reshape', orientationChangeProxy);
  24. ```