o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1372441620.7441401: @value"- {I" class:EFI"ProcessedAsset;FI"logical_path;F"4iugu-ux/components/usecode/iugu-ui-navigator.jsI" pathname;F"|/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-navigator.js.coffeeI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-09T11:27:31-02:00;FI" length;Fi‚I" digest;F"%505e8935766a324b726b4d4f1f3c43c3I" 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.Navigator = (function(_super) { __extends(Navigator, _super); function Navigator() { _ref = Navigator.__super__.constructor.apply(this, arguments); return _ref; } Navigator.prototype.layout = "iugu-ui-navigator"; Navigator.prototype.events = { 'click a.next': function() { this.handleEvent('next'); return false; }, 'click a.previous': function() { this.handleEvent('previous'); return false; }, 'change input.page': 'changePage' }; Navigator.prototype.currentPage = function() { return this.$('input.page'); }; Navigator.prototype.changePage = function() { var old_page, page; old_page = this.context().currentPage; page = this.currentPage().val(); if (page === '') { page = old_page; } if (this.context().lastPage + 1 > page) { this.handleEvent('change-page'); this.lastChanged = true; return true; } else { this.currentPage().val(old_page); this.currentPage().select(); return false; } }; Navigator.prototype.initialize = function() { _.bindAll(this, 'changePage'); return Navigator.__super__.initialize.apply(this, arguments); }; Navigator.prototype.context = function() { return { currentPage: 1, firstPage: 1, lastPage: 3 }; }; Navigator.prototype.setFocus = function() { var context; context = this; if (this.lastChanged) { return setTimeout(function() { context.$('input.page').focus(); return context.lastChanged = false; }, 10); } }; return Navigator; })(IuguUI.Base); this.IuguUI.Navigator = IuguUI.Navigator; }).call(this); ;TI"dependency_digest;F"%dc5c0ef184480e6b2182210189fdac00I"required_paths;F["|/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-navigator.js.coffeeI"dependency_paths;F[{I" path;F"|/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-navigator.js.coffeeI" mtime;FI"2013-01-09T11:27:31-02:00;FI" digest;F"%9a02a45da46ef6721a4005aa02274faaI" _version;F"%6776f581a4329e299531e1d52aa59832