Sha256: 38d0951afc59062bd486f5eb85188e87ba51d1dc2ed292cf38fd31bf671f2e78

Contents?: true

Size: 1.75 KB

Versions: 2

Compression:

Stored size: 1.75 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"type_station/init.js;FI"
pathname;TI"_/Users/richardadams/github/type_station/app/assets/javascripts/type_station/init.js.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+Z±¿TI"length;Ti!I"digest;TI"%56fd22c0a3ca8df72745751dc3f134f7;FI"source;TI"!(function() {
  window.TS.models = new window.TS.Store;

  window.TS.editors = new window.TS.Store;

  window.TS.getModel = function(url) {
    var model;
    model = this.models.get(url);
    if (!model) {
      model = new window.TS.Model(url);
      this.models.set(url, model);
    }
    return model;
  };

  window.TS.enable = function() {
    return this.editors.each(function(id, editor) {
      return editor.enable();
    });
  };

  window.TS.disable = function() {
    return this.editors.each(function(id, editor) {
      return editor.disable();
    });
  };

  window.TS.save = function() {
    return this.models.each(function(id, model) {
      return model.save();
    });
  };

  window.TS.init = function() {
    this.editors.set('ts-admin-bar', new window.TS.AdminBar($('#ts-admin-bar-template')));
    this.editors.set('ts-editable-text', new window.TS.EditableText($('span.ts-editable-text')));
    this.editors.set('ts-editable-html', new window.TS.EditableHtml($('.ts-editable-html')));
    this.editors.set('ts-editable-image', new window.TS.EditableImage($('.ts-editable-image')));
    this.editors.set('ts-editable-file', new window.TS.EditableFile($('.ts-editable-file')));
    return this.editors.set('ts-new-model', new window.TS.NewModel($('.ts-new-model')));
  };

}).call(this);
;TI"required_assets_digest;TI"%1982473ccc1095dd3d702099b98dc175;FI"
_version;TI"%64e62ddc273c2f5847f30d698ca14b67;F

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
type_station-0.0.3 spec/dummy/tmp/cache/assets/development/sprockets/8803d0a63bbf3fce683c968d4a900480
type_station-0.0.3 spec/dummy/tmp/cache/assets/development/sprockets/a2b3a282d5d8a5c20444d1a27f70a61e