Create an event based UserSettings and use it for the grid diplay state.

This commit is contained in:
Vince
2013-06-17 20:24:27 +02:00
parent 889d5c0d53
commit 1d4ff1d2de
5 changed files with 37 additions and 26 deletions

View File

@ -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]);
},
/**