sisyphus.js
function( key, value, fireCallback ) {
					var self = this;
					
					var callback_result = self.options.onBeforeSave.call( self );
					if ( callback_result !== undefined && callback_result === false ) {
						return;
					}

					// if fireCallback is undefined it should be true
					fireCallback = fireCallback === undefined ? true : fireCallback;
					this.browserStorage.set( key, value );
					if ( fireCallback && value !== "" ) {
						this.options.onSave.call( this );
					}
				}
function( key, value, fireCallback ) {
					var self = this;
					
					var callback_result = self.options.onBeforeSave.call( self );
					if ( callback_result !== undefined && callback_result === false ) {
						return;
					}

					// if fireCallback is undefined it should be true
					fireCallback = fireCallback === undefined ? true : fireCallback;
					this.browserStorage.set( key, value );
					if ( fireCallback && value !== "" ) {
						this.options.onSave.call( this );
					}
				}
function ( key , value , fireCallback ) { var self = this ; var callback_result = self . options . onBeforeSave . call ( self ) ; if ( callback_result !== undefined && callback_result === false ) { return ; } // if fireCallback is undefined it should be true fireCallback = fireCallback === undefined ? true : fireCallback ; this . browserStorage . set ( key , value ) ; if ( fireCallback && value !== "" ) { this . options . onSave . call ( this ) ; } }
Save data to Local Storage and fire callback if defined

@param String key
@param String value
@param Boolean [true] fireCallback

@return void
Save data to Local Storage and fire callback if defined