Sha256: 136f5a11ca61300914f970e4f4d8ff49b5c98b084b2c8ddac28b83a0b8f829d1

Contents?: true

Size: 1.55 KB

Versions: 2

Compression:

Stored size: 1.55 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"magic_lamp/magic_lamp.js;FI"
pathname;TI"Z/Users/Michael/Development/magic_lamp/app/assets/javascripts/magic_lamp/magic_lamp.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+ñЃTI"length;TiZI"digest;TI"%1bd5a76897c33aea654f3eaf0a6e08a2;FI"source;TI"Z(function(global) {
  var MagicLamp = {
    initialize: function() {
      this.genie = new this.Genie();
    },

    fixtureNames: function() {
      return this.genie.fixtureNames();
    },

    globalize: function() {
      window.clean = this.clean;
      window.load = this.load;
      window.loadJSON = this.loadJSON;
      window.loadRaw = this.loadRaw;
    },

    preload: function() {
      this.genie.preload.apply(this.genie, arguments);
    }
  };

  MagicLamp.clean = function() {
    MagicLamp.genie.removeFixtureContainer();
  }

  MagicLamp.load = function() {
    MagicLamp.genie.load.apply(MagicLamp.genie, arguments);
  };

  MagicLamp.loadRaw = function() {
    return MagicLamp.genie.retrieveFixture.apply(MagicLamp.genie, arguments);
  };

  MagicLamp.loadJSON = function(fixtureName) {
    return JSON.parse(MagicLamp.loadRaw(fixtureName));
  };

  global.MagicLamp = MagicLamp;
})(this);

// aliases
MagicLamp.rub = MagicLamp.load;
MagicLamp.wish = MagicLamp.load;
MagicLamp.massage = MagicLamp.preload;
MagicLamp.wishForMoreWishes = MagicLamp.preload;
MagicLamp.polish = MagicLamp.clean;
;TI"required_assets_digest;TI"%7416f4d067f95d0a70ff2349de73c8b7;FI"
_version;TI"%069e88c06b889877799890854d7f4c40;F

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
magic_lamp-1.5.1 spec/dummy/tmp/cache/assets/development/sprockets/9825272284630c2926f661645205382a
magic_lamp-1.5.1 spec/dummy/tmp/cache/assets/development/sprockets/b2a142b210c2cbfe4a58040684b3c33c