ionic restructure

This commit is contained in:
Adam Bradley
2013-08-29 09:13:07 -05:00
parent 54e6d98343
commit 852613cb82
83 changed files with 7885 additions and 3564 deletions

42
test/event-listeners.js Normal file
View File

@ -0,0 +1,42 @@
(function(window, document, framework) {
// this file should not be apart of the build
// its just just for testing that the correct
// events are being triggered and at the correct
// times, and so we don't have to hardcode/remove
// console calls throughout the code
framework.on('ready', function(){
console.log('ready');
});
framework.on('initalized', function(){
console.log('initalized');
});
framework.on('pageinit', function(e){
console.log('pageinit:', e.detail);
});
framework.on('pageinitfailed', function(){
console.log('pageinitfailed');
});
framework.on('pageloaded', function(e){
console.log('pageloaded,', e.detail.data.url, ", Title:", e.detail.data.title);
});
framework.on('pagecreate', function(e){
console.log('pagecreate,', e.detail.url);
});
framework.on('pageview', function(){
console.log('pageview');
});
framework.on('pageremove', function(){
console.log('pageremove');
});
})(this, document, FM = this.FM || {});