{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;TiI" digest;TI"%557cb0816e2d7b3d23408fef2cf185f1;FI" source;TI"(function() { var __hasProp = {}.hasOwnProperty, __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; }; window.TS.Store = (function() { function Store(id) { this.id = id != null ? 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"%01cd2831bffdeef379b311175288a62c;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"%cdbe070f6cecb6397f38f72dbafdf406;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F