o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357654409.3271658ðI: @value"# {I" class:EFI"ProcessedAsset;FI"logical_path;FI"4iugu-ux/components/usecode/iugu-ui-navigator.js;FI" pathname;FI"|/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-navigator.js.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-08T11:07:30-02:00;FI" length;FidI" digest;F"%968bde8bb8c12e6125bfd05f24ed2d9dI" source;FI"d(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.Navigator = (function(_super) { __extends(Navigator, _super); function Navigator() { return Navigator.__super__.constructor.apply(this, arguments); } 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"%7dc464c4dff1704eea5566680280afdfI"required_paths;F[I"|/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-navigator.js.coffee;FI"dependency_paths;F[{I" path;FI"|/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-navigator.js.coffee;FI" mtime;FI"2013-01-08T11:07:30-02:00;FI" digest;F"%cb67a6741d6cb74b83e9137bf2854de8I" _version;F"%9f3b95dd7ea3030dc35985c0a8020862