Difference between revisions 240023 and 259992 on ptwikibooks

/*


A small library of self-contained helper methods used to create Pathoschild's MediaWiki user scripts.

For more information, see <https://github.com/Pathoschild/Wikimedia-contrib#readme>.


*/
/*jshint bitwise:true, eqeqeq:true, forin:false, immed:true, latedef:true, loopfunc:true, noarg:true, noempty:true, nonew:true, smarttabs:true, strict:true, trailing:true, undef:true*/
/*global $:true, mw:true*/
var pathoschild = pathoschild || {};
(function () {
	"'use strict";';

	/**
	 * Self-contained utility methods.
	 * @namespace
	 */
	pathoschild.util = {
		_version: '0.9.12-alpha',

(contracted; show full)
		/**
		 * Write a message to the browser debugging console.
		 * @param {string} message The message to log.
		 */
		Log: function (message) {
			if (window.console && window.console.log)
				
window.console.log(message);
			else if(window.mw)
				mw.log(message);
		},

		/**
		 * Add a block of CSS to the page. Scripts only used with MediaWiki should call mw.loader.load(...) or mw.util.addCSS(...) instead.
		 * @param {string} css The CSS text to add.
(contracted; show full)				if (isCallback)
					$link.click(function (e) { e.preventDefault(); target(e); });

				return $link;
			}
		}
	};
}());