o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1361449319.9226241 F: @value"¬ {I" class:EFI"BundledAsset;FI"logical_path;FI"iugu-ux/iugu-ui-helpers.js;FI" pathname;FI"|/Users/patricknegri/.rvm/gems/ruby-1.9.2-p290/gems/iugu-ux-0.9.2/vendor/assets/javascripts/iugu-ux/iugu-ui-helpers.js.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-17T19:18:49-02:00;FI" length;FiŸ I" digest;F"%f4e8645590fdcdf51677d0eb46b7f8c6I" source;FI"Ÿ (function() { IuguUI.Helpers = (function() { function Helpers() {} Helpers.bindNavigatorToCollection = function(collection, navigator, context) { var gotoNextPage, gotoPage, gotoPreviousPage; navigator.context = function() { var info; info = collection.info(); return { currentPage: info.currentPage, firstPage: info.firstPage, lastPage: info.lastPage }; }; gotoNextPage = function() { return collection.gotoNext(); }; gotoPreviousPage = function() { return collection.gotoPrevious(); }; gotoPage = function() { return collection.gotoPage(navigator.currentPage().val()); }; navigator.collection = collection; context.on(navigator.identifier() + 'next', gotoNextPage, context); context.on(navigator.identifier() + 'previous', gotoPreviousPage, context); context.on(navigator.identifier() + 'change-page', gotoPage, context); collection.on('all', navigator.render, navigator); return collection.on('changed-page:success', navigator.setFocus, navigator); }; Helpers.bindPaginatorToCollection = function(collection, paginator, context) { var gotoNextPage, gotoPage, gotoPreviousPage; paginator.context = function() { return { currentPage: collection.info().currentPage, firstPage: collection.info().firstPage, lastPage: collection.info().lastPage, pageButtons: this.pageButtonsToShow(paginator.options.numberOfPageButtons, collection.info().firstPage, collection.info().lastPage, collection.info().currentPage), enableAdditionalButtons: paginator.options.enableAdditionalButtons }; }; gotoNextPage = function() { return collection.gotoNext(); }; gotoPreviousPage = function() { return collection.gotoPrevious(); }; gotoPage = function() { return collection.gotoPage(paginator.currentPage); }; paginator.collection = collection; context.on(paginator.identifier() + 'next', gotoNextPage, context); context.on(paginator.identifier() + 'previous', gotoPreviousPage, context); context.on(paginator.identifier() + 'change-page', gotoPage, context); return collection.on('all', paginator.render, paginator); }; return Helpers; })(); this.IuguUI.Helpers = IuguUI.Helpers; }).call(this); ;FI"required_assets_digest;F"%3a066352e103fc13ab41fd8bc52b2855I" _version;F"%6776f581a4329e299531e1d52aa59832