o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357654410.499074πΤ: @value"– {I" class:EFI"BundledAsset;FI"logical_path;FI"iugu-ux/iugu-ui-helpers.js;FI" pathname;FI"l/Users/patricknegri/Desenvolvimento/iugu-ux/vendor/assets/javascripts/iugu-ux/iugu-ui-helpers.js.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-08T10:23:19-02:00;FI" length;FiŸ I" digest;F"%6eeaebe4757e4d4c18361d245656956aI" 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"%dca52f511270b42601c542e9fab0fd4fI" _version;F"%9f3b95dd7ea3030dc35985c0a8020862