Sha256: 6eee075525debdc62f49d9e12430870a5e1757a63167ff913f94148068a42ccd
Contents?: true
Size: 777 Bytes
Versions: 6
Compression:
Stored size: 777 Bytes
Contents
var MagicLamp = { initialize: function() { this.genie = new this.Genie(); }, fixtureNames: function() { return this.genie.fixtureNames(); }, globalize: function() { var context = this; window.load = function(path) { context.load(path); }; window.clean = function() { context.clean(); }; }, load: function() { this.genie.load.apply(this.genie, arguments); }, preload: function() { this.genie.preload.apply(this.genie, arguments); }, clean: function() { this.genie.removeFixtureContainer(); } }; // aliases MagicLamp.rub = MagicLamp.load; MagicLamp.wish = MagicLamp.load; MagicLamp.massage = MagicLamp.preload; MagicLamp.wishForMoreWishes = MagicLamp.preload; MagicLamp.polish = MagicLamp.clean;
Version data entries
6 entries across 6 versions & 1 rubygems