Whitespace cleanup, remove deprecated methods

* Fixed many white space issues- mainly whitespace missing before
  function start paranthesis eg: function()
* Removed the deprecated live methods and replaced with on
* Added file documentation for ext.uls.geoclient

Change-Id: Ib2c8cfed1a6ff3859495e707680d5c19882a33e8
This commit is contained in:
Santhosh Thottingal
2012-09-07 16:43:53 +05:30
parent d29364989f
commit 5b3f7cc269
6 changed files with 85 additions and 63 deletions

View File

@@ -18,7 +18,7 @@
* @licence MIT License
*/
( function( $, mw ) {
( function ( $, mw, undefined ) {
"use strict";
var ULSPreferences = function ( group ) {
@@ -46,6 +46,7 @@
/**
* Set the preference
*
* @param {String} key
* @param value
*/
@@ -58,6 +59,7 @@
/**
* Get a preference value for the given preference name
*
* @param key
* @returns
*/
@@ -104,7 +106,7 @@
};
mw.uls = mw.uls || {};
mw.uls.preferences = function( group ) {
mw.uls.preferences = function ( group ) {
var data = $( 'body' ).data( "preferences" );
if ( !data ) {