mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
fc63c771ff
Change-Id: I4a3b88e4fd7d57344673572cae24eff5c6078574
24 lines
625 B
JavaScript
24 lines
625 B
JavaScript
/**
|
|
* Logs data to the console.
|
|
*
|
|
* This implementation does nothing, to add a real implmementation ve.debug needs to be loaded.
|
|
*
|
|
* @static
|
|
* @method
|
|
* @param {Mixed} [...] Data to log
|
|
*/
|
|
ve.log = window.console && window.console.log ?
|
|
Function.prototype.bind.call( console.log, console ) : ve.log;
|
|
|
|
/**
|
|
* Logs an object to the console.
|
|
*
|
|
* This implementation does nothing, to add a real implmementation ve.debug needs to be loaded.
|
|
*
|
|
* @static
|
|
* @method
|
|
* @param {Object} obj Object to log
|
|
*/
|
|
ve.dir = window.console && window.console.dir ?
|
|
Function.prototype.bind.call( console.dir, console ) : ve.dir;
|