$.plugin = {
loadedcss : [],
add: function(params) {
$.each(params["css"], function(key,value) {
// this.loadedcss error undefined
this.loadedcss.push(value);
});
},
end: function(){
//console.log(this.loadedcss);
}
};
as you can see im trying to push my new css params to loadedcss variable. and it says error undefined this.loadedcss maybe there is something that i miss
$.plugin.add({
css: ['framework.css','csstest.css']
});
$.plugin.add({
css: ['framework.css','csstest.css']
});
$.plugin.end();
how can we push my params['css'] to this.loadedcss ?
cssandjsmixed up in your code.