[ Index ]

PHP Cross Reference of DokuWiki




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

(no description)

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

Defines 2 functions


Functions that are not part of a class:

Mark a JavaScript function as deprecated

This will print a warning to the JavaScript console (if available) in
Firebug and Chrome and a stack trace (if available) to easily locate the
problematic function call.

param: msg optional message to print

DEPRECATED_WRAP(func, context)   X-Ref
Construct a wrapper function for deprecated function names

This function returns a wrapper function which just calls DEPRECATED
and the new function.

param: func    The new function
param: context Optional; The context (`this`) of the call