[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/lib/scripts/ -> events.js (summary)

(no description)

File Size: 50 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  addEvent()
  removeEvent()
  addInitEvent()
  bind()

Functions
Functions that are not part of a class:

addEvent(element, type, handler)   X-Ref
The event functions are no longer in use and a mere wrapper around
jQuery's event handlers.


removeEvent(element, type, handler)   X-Ref
No description

addInitEvent(func)   X-Ref
No description

bind(fnc)   X-Ref
Bind variables to a function call creating a closure

Use this to circumvent variable scope problems when creating closures
inside a loop

link: http://www.cosmocode.de/en/blog/gohr/2009-10/15-javascript-fixing-the-closure-scope-in-loops
returns: functionref
author: Adrian Lang <lang@cosmocode.de>
param: functionref fnc - the function to be called
param: mixed - any arguments to be passed to the function



Generated: Thu Aug 18 03:00:04 2011 Cross-referenced by PHPXref 0.7
WikiForumIRCBugsGitXRefTranslate