o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357820267.431561: @value"ü {I" class:EFI"BundledAsset;FI"logical_path;FI"2iugu-ux/components/usecode/iugu-ui-dataset.js;TI" pathname;FI"†/Users/nkr/.rvm/gems/ruby-1.9.3-p327/gems/iugu-ux-0.8.7/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-dataset.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-09T15:40:06-02:00;FI" length;FiÒI" digest;F"%dd37ab5289cf71e2585ac358070a8d1bI" 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"%0ce99f640359962962230405d8ec9beaI" _version;F"%6776f581a4329e299531e1d52aa59832