????JFIF??x?x????'
| Server IP : 104.21.30.238 / Your IP : 216.73.216.113 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././proc/self/cwd/wp-content/plugins/motopress-content-editor/jquery/model/list/local/ |
Upload File : |
steal('jquery/dom/cookie','jquery/model/list').then(function($){
/**
* @class jQuery.Model.List.Local
* @plugin jquery/model/list/local
* @download http://jmvcsite.heroku.com/pluginify?plugins[]=jquery/model/list/local/local.js
* @parent jQuery.Model.List
* Works exactly the same as [jQuery.Model.List.Cookie] except uses
* a local store instead of cookies.
*/
$.Model.List("jQuery.Model.List.Local",
{
retrieve : function(name){
// each also needs what they are referencd by ?
var props = window.localStorage[ name ] || "[]",
instances = [],
Class = props.type ? $.String.getObject(props.type) : null;
for(var i =0; i < props.ids.length;i++){
var identity = props.ids[i],
instanceData = window.localStorage[ identity ];
instances.push( new Class(instanceData) )
}
this.push.apply(this,instances);
return this;
},
store : function(name){
// go through and listen to instance updating
var ids = [], days = this.days;
this.each(function(i, inst){
window.localStorage[inst.identity()] = instance.attrs();
ids.push(inst.identity());
});
window.localStorage[name] = {
type: this[0] && this[0].constructor.fullName,
ids: ids
};
return this;
}
});
})