File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ class LOCAL_STORAGE {
141
141
*/
142
142
register ( props , days ) {
143
143
if ( _ . isObject ( props ) ) {
144
- this . expire_days = ( typeof days === 'undefined' ) ? this . default_expiry : day ;
144
+ this . expire_days = ( typeof days === 'undefined' ) ? this . default_expiry : days ;
145
145
_ . extend ( this [ 'props' ] , props ) ;
146
146
this . save ( ) ;
147
147
return true ;
@@ -162,7 +162,7 @@ class LOCAL_STORAGE {
162
162
if ( typeof default_value === 'undefined' ) {
163
163
default_value = 'None' ;
164
164
}
165
- this . expire_days = ( typeof days === 'undefined' ) ? this . default_expiry : day ;
165
+ this . expire_days = ( typeof days === 'undefined' ) ? this . default_expiry : days ;
166
166
167
167
_ . each ( props , function ( val , prop ) {
168
168
if ( ! this [ 'props' ] [ prop ] || this [ 'props' ] [ prop ] === default_value ) {
You can’t perform that action at this time.
0 commit comments