Created
March 29, 2013 17:47
-
-
Save ehynds/5272377 to your computer and use it in GitHub Desktop.
This file contains 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
// base page that all others extend | |
// src/scripts/app/views/base/page.js | |
define([ | |
"app", | |
"views/common/navigation", | |
"views/common/searchOverlay", | |
"views/common/your-custom-gigya" | |
], function(app, NavigationView, SearchView, MyGigyaView) { | |
return app.views.BaseView.extend({ | |
// Each page's root view is the body element | |
el: document.body, | |
// If you overwrite this function be sure to call | |
initialize: function() { | |
// ... stuff here | |
// make your stuff work | |
MyGigyaView(); | |
} | |
}); | |
}); |
This file contains 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
// put this in | |
// src/scripts/app/views/common/ | |
define([ "app" ], function(app) { | |
// if you want something to run the second this file | |
// has been downloaded, put it outside of the returned | |
//function. | |
return function() { | |
// initialize your custom integration here. | |
// app namespace is available for you to use | |
// if you so desire. | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment