EventsPageModule.js 550 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. define( function() {
  2. "use strict";
  3. var bAlert = false;
  4. function PageModule()
  5. {
  6. };
  7. PageModule.prototype.load = function( oPage )
  8. {
  9. this.log( "PageModule.load" );
  10. };
  11. PageModule.prototype.show = function( oPage )
  12. {
  13. this.log( "PageModule.show" );
  14. };
  15. PageModule.prototype.hide = function( oPage )
  16. {
  17. this.log( "PageModule.hide" );
  18. };
  19. PageModule.prototype.destroy = function( oPage )
  20. {
  21. this.log( "PageModule.destroy" );
  22. };
  23. PageModule.prototype.log = function( s )
  24. {
  25. console.log( s );
  26. if ( bAlert )
  27. {
  28. alert( s );
  29. }
  30. };
  31. return PageModule;
  32. });