o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357760297.7089789_é: @value"ï {I" class:EFI"BundledAsset;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-09T13:24:07-02:00;FI" length;FiÒI" digest;F"%bf394e531965abbfabd85fdb76047a27I" source;FI"Ò(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.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('all', this.render); 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.Base); this.IuguUI.Dataset = IuguUI.Dataset; }).call(this); ;FI"required_assets_digest;F"%1967c72508a0bd9741096e710d925d60I" _version;F"%9f3b95dd7ea3030dc35985c0a8020862