o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1361449320.2888021{: @value"t {I" class:EFI"BundledAsset;FI"logical_path;FI"2iugu-ux/components/usecode/iugu-ui-dataset.js;FI" pathname;FI"/Users/patricknegri/.rvm/gems/ruby-1.9.2-p290/gems/iugu-ux-0.9.2/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-dataset.js.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-17T19:18:49-02:00;FI" length;FiAI" digest;F"%94fd363fcefb338e7b2591b3a086bfd9I" 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); ;FI"required_assets_digest;F"%1446c23d5194830e7f3a270c4ea77947I" _version;F"%6776f581a4329e299531e1d52aa59832