o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1392321405.291414: @value"M {I" class:EFI"ProcessedAsset;FI"logical_path;FI"1iugu-ux/components/usecode/iugu-ui-search.js;TI" pathname;FI"s/Users/nkr/Projetos/Iugu/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-search.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2014-01-14T09:59:34-02:00;FI" length;Fi¾I" digest;F"%6e5c58c1695ccab75c1181c9dfa29a51I" source;FI"¾(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.Search = (function(_super) { __extends(Search, _super); function Search() { _ref = Search.__super__.constructor.apply(this, arguments); return _ref; } Search.prototype.layout = "iugu-ui-search"; Search.prototype.events = { 'keypress input.search': 'searchCollection' }; Search.prototype.searchCollection = function(e) { var query; if (e.keyCode === 13) { this.handleEvent("search"); e.preventDefault(); query = $(e.target).val(); if (query === "") { this.collection.removeFilter('query'); } else { this.collection.configureFilter('query', query); } return this.collection.fetch(); } }; Search.prototype.initialize = function() { _.bindAll(this, 'searchCollection'); Search.__super__.initialize.apply(this, arguments); return this; }; Search.prototype.render = function() { var input, lastQuery; Search.__super__.render.apply(this, arguments); lastQuery = this.collection.getFilter('query'); if ((lastQuery != null) && lastQuery.length > 0) { input = this.$('input.search-query'); input.val(lastQuery); return input.focus(); } }; return Search; })(IuguUI.Base); this.IuguUI.Search = IuguUI.Search; }).call(this); ;TI"dependency_digest;F"%e817fc0bc57e144ea142f35bbbc04686I"required_paths;F[I"s/Users/nkr/Projetos/Iugu/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-search.js.coffee;TI"dependency_paths;F[{I" path;FI"s/Users/nkr/Projetos/Iugu/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-search.js.coffee;TI" mtime;FI"2014-01-14T09:59:34-02:00;FI" digest;F"%3dd68fe7fffc46e25af8bb5c1576a4c2I" _version;F"%9f3b95dd7ea3030dc35985c0a8020862