1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- define( function() {
- "use strict";
- var bAlert = false;
- function Control()
- {
- };
- Control.prototype.initialize = function( oControlHost, fnDoneInitializing )
- {
- this.log( "CustomControl.initialize" );
- fnDoneInitializing();
- };
- Control.prototype.show = function( oControlHost )
- {
- this.log( "CustomControl.show" );
- };
- Control.prototype.hide = function( oControlHost )
- {
- this.log( "CustomControl.hide" );
- };
- Control.prototype.draw = function( oControlHost )
- {
- this.log( "CustomControl.draw" );
- oControlHost.container.innerHTML = "Hello";
- };
- Control.prototype.getParameters = function( oControlHost )
- {
- this.log( "CustomControl.getParameters" );
- return null;
- };
- Control.prototype.destroy = function( oControlHost )
- {
- this.log( "CustomControl.destroy" );
- };
- Control.prototype.log = function( s )
- {
- console.log( s );
- if ( bAlert )
- {
- alert( s );
- }
- };
- return Control;
- });
|