Permalink
Browse files

Fix testing if fireCallback undefined in saveToBrowserStorage()

  • Loading branch information...
1 parent 01bf52c commit 795067f7a69247285924f3d41e3369614d522dea @yesmeck yesmeck committed Jan 9, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 sisyphus.js
  2. +1 −1 sisyphus.min.js
View
@@ -342,7 +342,7 @@
*/
saveToBrowserStorage: function( key, value, fireCallback ) {
// if fireCallback is undefined it should be true
- fireCallback = fireCallback === null ? true : fireCallback;
+ fireCallback = fireCallback === undefined ? true : fireCallback;
this.browserStorage.set( key, value );
if ( fireCallback && value !== "" && $.isFunction( this.options.onSave ) ) {
this.options.onSave.call();
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 795067f

Please sign in to comment.