sandbox/tmp/cache/assets/D9F/020/sprockets%2Fd21cfdfa8182a8866e0ba904ef6561ea in iugu-ux-0.8.7 vs sandbox/tmp/cache/assets/D9F/020/sprockets%2Fd21cfdfa8182a8866e0ba904ef6561ea in iugu-ux-0.8.8

- old
+ new

@@ -1,9 +1,9 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357654410.4069388 I: @value"Â +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357760297.146234[æ: @value"È {I" class:EFI"ProcessedAsset;FI"logical_path;FI"0iugu-ux/components/usecode/iugu-ui-table.js;FI" pathname;FI"}/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-table.js.coffee;FI"content_type;FI"application/javascript;FI" -mtime;FI"2013-01-08T11:08:00-02:00;FI" length;FiI" digest;F"%2a2c2038200c7aefa0b15e6f6b822a04I" source;FI"(function() { +mtime;FI"2013-01-09T14:34:21-02:00;FI" length;FiI" digest;F"%cbf38a4ea225dc309ab894e718923f2dI" 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.Table = (function(_super) { @@ -20,11 +20,11 @@ itemTagName: "tr", itemClassName: "table-row" }; Table.prototype.events = { - 'click a.sort-button': 'sortByColumn' + 'click .sort-button': 'sortByColumn' }; Table.prototype.context = function() { return { sortableBy: this.options.sortableBy, @@ -38,20 +38,20 @@ return this.sortBy = {}; }; Table.prototype.sortByColumn = function(e) { var btn, name; - btn = $(e.target); - name = btn.context.id; - if (btn.data('direction') === "ASC") { + 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"); + } else if (btn.data('direction') === "desc") { + btn.data('direction', "asc"); this.sortBy[name] = "asc"; } else { - btn.data('direction', "DESC"); + btn.data('direction', "desc"); this.sortBy[name] = "desc"; } this.collection.removeFilter('sortBy'); this.collection.configureFilter('sortBy', this.sortBy); return this.collection.fetch(); @@ -62,7 +62,7 @@ })(IuguUI.Dataset); this.IuguUI.Table = IuguUI.Table; }).call(this); -;TI"dependency_digest;F"%d41f6a00cc0fdc76929befc8c6b2a566I"required_paths;F[I"}/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-table.js.coffee;FI"dependency_paths;F[{I" path;FI"}/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-table.js.coffee;FI" -mtime;FI"2013-01-08T11:08:00-02:00;FI" digest;F"%3b2389e887201a02a300925ed2bcbe99I" _version;F"%9f3b95dd7ea3030dc35985c0a8020862 +;TI"dependency_digest;F"%8c51b9891a08567baff92875410f34b2I"required_paths;F[I"}/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-table.js.coffee;FI"dependency_paths;F[{I" path;FI"}/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-table.js.coffee;FI" +mtime;FI"2013-01-09T14:34:21-02:00;FI" digest;F"%3a03941b2685e1e633674c46c88e5265I" _version;F"%9f3b95dd7ea3030dc35985c0a8020862 \ No newline at end of file