User:Gerbrant/gui/toolbox.js: Difference between revisions

Content deleted Content added
Gerbrant (talk | contribs)
because of course this refers to the inner function
Gerbrant (talk | contribs)
JavaScript, closure, endless amounts of fun
 
Line 39:
loadModule(x, this.addObject);
else
loadModule(n, function(cargs)
{
varloadModule(n, o = {};function(c)
c.apply(o, x.slice(1));{
self.addObject( var o) = {};
} c.apply(o, args);
self.addObject(o);
});
})(x.slice(1));
}
catch(e)