mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Create an event based UserSettings and use it for the grid diplay state.
This commit is contained in:
@ -12,9 +12,7 @@
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
cache_: {
|
||||
|
||||
},
|
||||
cache_: {},
|
||||
|
||||
/**
|
||||
* Static method to access a user defined settings value ot its default
|
||||
@ -31,7 +29,9 @@
|
||||
set : function (key, value) {
|
||||
this.checKeyValidity_(key);
|
||||
this.cache_[key] = value;
|
||||
this.set_(key, value);
|
||||
this.set_(key, value);
|
||||
|
||||
$.publish(Events.USER_SETTINGS_CHANGED, [key, value]);
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user