o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1372441622.1054568: @value"Ñ {I" class:EFI"ProcessedAsset;FI"logical_path;F"0iugu-ux/components/usecode/iugu-ui-table.jsI" pathname;F"}/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-table.js.coffeeI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-09T14:34:21-02:00;FI" length;Fi9I" digest;F"%44e16d50b471665799560d9f3622f690I" source;FI"9(function() { var _ref, __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.Table = (function(_super) { __extends(Table, _super); function Table() { _ref = Table.__super__.constructor.apply(this, arguments); return _ref; } Table.prototype.layout = "iugu-ui-table"; Table.prototype.defaults = { itemLayout: "iugu-ui-table-row", itemTagName: "tr", itemClassName: "table-row" }; Table.prototype.events = { 'click .sort-button': 'sortByColumn' }; Table.prototype.context = function() { return { sortableBy: this.options.sortableBy, fields: this.options.fields, sortBy: this.sortBy }; }; Table.prototype.initialize = function() { Table.__super__.initialize.apply(this, arguments); return this.sortBy = {}; }; Table.prototype.sortByColumn = function(e) { var btn, name; btn = $(e.currentTarget); name = btn.attr('id'); if (btn.data('direction') === "asc") { btn.data('direction', ""); delete this.sortBy[name]; } else if (btn.data('direction') === "desc") { btn.data('direction', "asc"); this.sortBy[name] = "asc"; } else { btn.data('direction', "desc"); this.sortBy[name] = "desc"; } this.collection.removeFilter('sortBy'); this.collection.configureFilter('sortBy', this.sortBy); return this.collection.fetch(); }; return Table; })(IuguUI.Dataset); this.IuguUI.Table = IuguUI.Table; }).call(this); ;TI"dependency_digest;F"%2135fd990d279e329675bc0a06fe2a78I"required_paths;F["}/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-table.js.coffeeI"dependency_paths;F[{I" path;F"}/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-table.js.coffeeI" mtime;FI"2013-01-09T14:34:21-02:00;FI" digest;F"%55acce48e32d7a1cee0a6ec991a0a39aI" _version;F"%6776f581a4329e299531e1d52aa59832