o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1358772536.808116¸,: @value"õ {I" class:EFI"ProcessedAsset;FI"logical_path;FI"2iugu-ux/components/usecode/iugu-ui-dataset.js;FI" pathname;FI"/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-dataset.js.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-12T06:47:36-02:00;FI" length;FiAI" digest;F"%cb76605e15161f0ef787975086adacfeI" source;FI"A(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; }; IuguUI.Dataset = (function(_super) { __extends(Dataset, _super); function Dataset() { return Dataset.__super__.constructor.apply(this, arguments); } Dataset.prototype.layout = "iugu-ui-dataset"; Dataset.prototype.secondaryView = true; Dataset.prototype.defaults = { itemLayout: "iugu-ui-dataset-record", itemTagName: "div", itemClassName: "record" }; Dataset.prototype.initialize = function() { Dataset.__super__.initialize.apply(this, arguments); _.bindAll(this, 'renderItems', 'addRecord'); this.collection.on('fetch', this.enableLoader, this); this.collection.on('reset', this.load, this); return this; }; Dataset.prototype.addRecord = function(item) { return this.els.push((new IuguUI.DatasetRecord({ model: item, baseURL: this.options.baseURL, layout: this.options.itemLayout, fields: this.options.fields, tagName: this.options.itemTagName, className: this.options.itemClassName, identifier: this.identifier() + "record", presenter: this.options.recordPresenter, parent: this })).render().el); }; Dataset.prototype.context = function() { return { dataset: this.collection, options: this.options }; }; Dataset.prototype.render = function() { Dataset.__super__.render.apply(this, arguments); this.renderItems(); return this; }; Dataset.prototype.renderItems = function() { this.els = []; this.collection.each(this.addRecord); this.$('.records').append(this.els); return this; }; return Dataset; })(IuguUI.View); this.IuguUI.Dataset = IuguUI.Dataset; }).call(this); ;TI"dependency_digest;F"%bfd39b7dbc30a53976676a5fa76e84c8I"required_paths;F[I"/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-dataset.js.coffee;FI"dependency_paths;F[{I" path;FI"/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-dataset.js.coffee;FI" mtime;FI"2013-01-12T06:47:36-02:00;FI" digest;F"%24bf0712cbb1791b6232265924ba6db3I" _version;F"%9f3b95dd7ea3030dc35985c0a8020862