{I" class:ETI"ProcessedAsset;FI"logical_path;TI"type_station/lib/models.js;FI" pathname;TI"e/Users/richardadams/github/type_station/app/assets/javascripts/type_station/lib/models.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+˜¿¿TI" length;Ti%I" digest;TI"%2201d388438a2ddc70eb4a31608677f7;FI" source;TI"%(function() { var __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, __hasProp = {}.hasOwnProperty; window.TS.Store = (function() { function Store(_at_id) { this.id = _at_id != null ? _at_id : null; this.STORE = {}; } Store.prototype.get = function(key) { return this.STORE[key]; }; Store.prototype.set = function(key, value) { return this.STORE[key] = value; }; Store.prototype.each = function(callback) { var key, value, _ref, _results; _ref = this.STORE; _results = []; for (key in _ref) { value = _ref[key]; _results.push(typeof callback === "function" ? callback(key, value) : void 0); } return _results; }; return Store; })(); window.TS.Model = (function(_super) { __extends(Model, _super); function Model() { return Model.__super__.constructor.apply(this, arguments); } Model.prototype.save = function(callback) { var data, key, self, value, _ref; if (callback == null) { callback = function() {}; } self = this; data = []; _ref = this.STORE; for (key in _ref) { value = _ref[key]; data.push(value); } return $.ajax({ type: "PATCH", url: self.id, dataType: 'json', contentType: 'application/json', data: JSON.stringify({ contents: data }), success: function(data) { return callback(data); } }); }; return Model; })(window.TS.Store); }).call(this); ;TI"dependency_digest;TI"%3c96aca8bbfd3d0001652dc1eab2e46d;FI"required_paths;T[I"e/Users/richardadams/github/type_station/app/assets/javascripts/type_station/lib/models.js.coffee;FI"dependency_paths;T[{I" path;TI"e/Users/richardadams/github/type_station/app/assets/javascripts/type_station/lib/models.js.coffee;FI" mtime;TI"2015-01-21T15:02:48+00:00;TI" digest;TI"%e09ab443ce58177468b5eeab19ff91bb;FI" _version;TI"%4bf7b15359fe8e0974f7f263e26e27f4;F