[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

(no description)

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

Defines 2 functions

  DEPRECATED()
  DEPRECATED_WRAP()

Functions
Functions that are not part of a class:

DEPRECATED(msg)   X-Ref
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