From 022efabf38af32c7b921155dd0c2d7811bef8ae0 Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Tue, 23 Sep 2014 16:16:44 +0530 Subject: [PATCH] Minor formatting changes Change-Id: I3ffd7029165ff614c13000b333ed30d3874fba28 --- README.md | 2 +- examples/decorator.html | 77 +++++++++++++++++++++-------------------- src/jquery.uls.lcd.js | 2 +- 3 files changed, 42 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index ba3e84b..3df7e5c 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ $( '.uls-trigger' ).uls( { | onCancel | function to be handled when language selection is not done. ie. language selector is closed without selecting any | | showRegions | Regions to be shown in the language selector. Default: ['WW', 'AM', 'EU', 'ME', 'AF', 'AS', 'PA'] | | itemsPerColumn | Number of languages per column. Default is 8 | -| languageDecorator | Callback function to be called when a language link is prepared - for custom decoration. Arguments: (a) the $language - the language link jQuery object (b) languageCode. The function can do any styling, changing properites etc on the passed link. See examples/decorator.html for example usage.| +| languageDecorator | Callback function to be called when a language link is prepared - for custom decoration. Arguments: (a) the $language - the language link jQuery object (b) languageCode. The function can do any styling, changing properties etc on the passed link. See examples/decorator.html for example usage.| Features diff --git a/examples/decorator.html b/examples/decorator.html index f7a36ed..0100696 100644 --- a/examples/decorator.html +++ b/examples/decorator.html @@ -1,41 +1,44 @@ - - - Universal Language Selector - - - - - - - - - - - - - - - - - - -
- + + + Universal Language Selector + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/jquery.uls.lcd.js b/src/jquery.uls.lcd.js index bcbdc8e..8ae5638 100644 --- a/src/jquery.uls.lcd.js +++ b/src/jquery.uls.lcd.js @@ -246,7 +246,7 @@ a.className = 'autonym'; li.appendChild( a ); - if( this.options.languageDecorator ) { + if ( this.options.languageDecorator ) { this.options.languageDecorator( $( a ), code ); } return li;