Callback for preference save action is optional
$.noop() was wrong. Changed it to $.noop as callback Change-Id: Iff935e1a9c1b364efd947ce1bff785dacb81570e
This commit is contained in:
@@ -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();
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user