o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1383740409.6772459: @value"– {I" class:EFI"BundledAsset;FI"logical_path;FI"4iugu-ux/components/usecode/iugu-ui-navigator.js;TI" pathname;FI"v/Users/alezonez/Projetos/iugu-ux/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-navigator.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-11T11:10:50-02:00;FI" length;Fi€I" digest;F"%fdf6b114f81e065275888b58fb0d9c02I" 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); ;FI"required_assets_digest;F"%715de888382a15c35e20c0524d7ce980I" _version;F"%6776f581a4329e299531e1d52aa59832