o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1383740401.2977211: @value"à {I" class:EFI"ProcessedAsset;FI"logical_path;FI"iugu-ux/iugu-ui-helpers.js;TI" pathname;FI"a/Users/alezonez/Projetos/iugu-ux/vendor/assets/javascripts/iugu-ux/iugu-ui-helpers.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-07-26T16:59:14-03:00;FI" length;Fi™ I" digest;F"%0ca76d368b39031b3a024d2c7bd03012I" source;FI"™ (function() { IuguUI.Helpers = (function() { function Helpers() {} Helpers.formatISO8601Date = function(date) { var dt; if (!date) { return ""; } dt = date.split('-'); if (dt.length < 3) { return ""; } return "" + dt[2] + "/" + dt[1] + "/" + dt[0]; }; 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); ;TI"dependency_digest;F"%209b4b9009e85f05c943c5743d07856cI"required_paths;F[I"a/Users/alezonez/Projetos/iugu-ux/vendor/assets/javascripts/iugu-ux/iugu-ui-helpers.js.coffee;TI"dependency_paths;F[{I" path;FI"a/Users/alezonez/Projetos/iugu-ux/vendor/assets/javascripts/iugu-ux/iugu-ui-helpers.js.coffee;TI" mtime;FI"2013-07-26T16:59:14-03:00;FI" digest;F"%4ed820b16bfe7058326d8e4932fecc7cI" _version;F"%6776f581a4329e299531e1d52aa59832