mediawiki-extensions-Visual.../modules/ve/ve.debug.js
Inez Korczyński 15b151ef58 Setup variable ve.debug to true when ve.debug.js is loaded.
Change-Id: I22309ddfda8271456665eb40c4b698c160061de4
2012-10-03 18:02:31 -07:00

36 lines
641 B
JavaScript

/*global console */
/**
* VisualEditor debugging methods.
*
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/* Static variables */
ve.debug = true;
/* Static Methods */
/**
* Logs data to the console.
*
* @static
* @method
* @param {Mixed} [...] Data to log
*/
ve.log = function () {
Function.prototype.apply.call( console.log, console, arguments );
};
/**
* Logs an object to the console.
*
* @static
* @method
* @param {Object} obj Object to log
*/
ve.dir = function () {
Function.prototype.apply.call( console.dir, console, arguments );
};