o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357820266.242549: @value"G {I" class:EFI"ProcessedAsset;FI"logical_path;FI"4iugu-ux/components/usecode/iugu-ui-navigator.js;TI" pathname;FI"ˆ/Users/nkr/.rvm/gems/ruby-1.9.3-p327/gems/iugu-ux-0.8.7/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-navigator.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-09T15:40:06-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); ;TI"dependency_digest;F"%314070f2535945d7e329154eb742de36I"required_paths;F[I"ˆ/Users/nkr/.rvm/gems/ruby-1.9.3-p327/gems/iugu-ux-0.8.7/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-navigator.js.coffee;TI"dependency_paths;F[{I" path;FI"ˆ/Users/nkr/.rvm/gems/ruby-1.9.3-p327/gems/iugu-ux-0.8.7/vendor/assets/javascripts/iugu-ux/components/usecode/iugu-ui-navigator.js.coffee;TI" mtime;FI"2013-01-09T15:40:06-02:00;FI" digest;F"%9a02a45da46ef6721a4005aa02274faaI" _version;F"%6776f581a4329e299531e1d52aa59832