o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1361449320.297821€: @value"› {I" class:EFI"BundledAsset;FI"logical_path;FI"4iugu-ux/components/usecode/iugu-ui-navigator.js;FI" pathname;FI"‘/Users/patricknegri/.rvm/gems/ruby-1.9.2-p290/gems/iugu-ux-0.9.2/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-navigator.js.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-17T19:18:49-02:00;FI" length;FidI" digest;F"%01e51b71f61a1ba1e9e81a8769a1a429I" 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); ;FI"required_assets_digest;F"%314070f2535945d7e329154eb742de36I" _version;F"%6776f581a4329e299531e1d52aa59832