This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| App.BaseRouter = Backbone.Router.extend({ | |
| showPage : function(pageId, callback){ | |
| //perform basic pre-show checks | |
| //implement transitions (and turn them off if required) | |
| } | |
| }); | |
| App.Router = App.BaseRouter.extend({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| getConfig : function() { | |
| //Default config | |
| var config = { | |
| size : 3, | |
| maxVisibleOnOneSide : 1, | |
| }; | |
| //Update the config based on device | |
| if($isDesktop || $native.isNative() && $os.ipad) { |