function Page(id, onInit, onShow, onHide, extras) {
    PAGES.push(this);

    this.onPause = function() {};
    this.onResume = function() {};

    if (extras) {
        for (var key in extras) {
            this[key] = extras[key];
            if (typeof this[key] === "function") {
                this[key] = this[key].bind(this);
            }
        }
    }

    this.id = id;
    this.onInit = onInit.bind(this);
    this.onShow = onShow.bind(this);
    this.onHide = onHide.bind(this);
}
/**
 * Abstract Model for a Page. These are representations of any .page element that's a direct child of <body>.
 * Check out the Page Configurations for examples of how to initialize one.
 */
Abstract Model for a Page. These are representations of any .page element that's a direct child of .
Check out the Page Configurations for examples of how to initialize one.
Abstract Model for a Page . These are representations of any . page element that ' s a direct child of . Check out the Page Configurations for examples of how to initialize one .
function Page(id, onInit, onShow, onHide, extras) {
    PAGES.push(this);
    this.onPause = function() {};
    this.onResume = function() {};
    if (extras) {
        for (var key in extras) {
            this[key] = extras[key];
            if (typeof this[key] === "function") {
                this[key] = this[key].bind(this);
            }
        }
    }
    this.id = id;
    this.onInit = onInit.bind(this);
    this.onShow = onShow.bind(this);
    this.onHide = onHide.bind(this);
}
function Page ( id , onInit , onShow , onHide , extras ) { PAGES . push ( this ) ; this . onPause = function ( ) { } ; this . onResume = function ( ) { } ; if ( extras ) { for ( var key in extras ) { this [ key ] = extras [ key ] ; if ( typeof this [ key ] === "function" ) { this [ key ] = this [ key ] . bind ( this ) ; } } } this . id = id ; this . onInit = onInit . bind ( this ) ; this . onShow = onShow . bind ( this ) ; this . onHide = onHide . bind ( this ) ; }
Abstract Model for a Page.
Abstract Model for a Page .