Callback for preference save action is optional

$.noop() was wrong. Changed it to $.noop as callback

Change-Id: Iff935e1a9c1b364efd947ce1bff785dacb81570e
This commit is contained in:
Santhosh Thottingal
2012-10-29 10:34:43 +05:30
parent e12f80ee75
commit fc4ca9f823
2 changed files with 3 additions and 5 deletions

View File

@@ -975,8 +975,7 @@
imeselector.position();
// save this preference
$.ime.preferences.save( function () {
} );
$.ime.preferences.save();
} );
},
@@ -995,8 +994,7 @@
this.$menu.removeClass( 'open' );
imeselector.position();
// save this preference
$.ime.preferences.save( function () {
} );
$.ime.preferences.save();
},
/**

View File

@@ -70,7 +70,7 @@
*/
save: function ( callback ) {
var that = this, api;
callback = callback || $.noop();
callback = callback || $.noop;
if ( this.isAnon ) {
// Anonymous user- Save preferences in local storage
$.jStorage.set( this.preferenceName, this.preferences );