testing.js

Summary

No overview generated for 'testing.js'


Class Summary
testing  

var testing = new function()
{
   var self = this;

   var __selected_runtime = '';



  var spotlight = function(event)
  {
    services['ecmascript-debugger'].spotlight(event['runtime-id'], event['object-id']);
    if( window.__times_spotlight__ ) 
    {
      debug.profileSpotlight();
    }
  }

  this.view = new function()
  {
    var self = this;
    var container_id = 'testing';


      
    this.update = function()
    {
      var container = document.getElementById(container_id);
      if( container )
      {
        container.innerHTML = '';
        container.render
        (
          [
            ['p', 
              ['input', 
                'type', 'button',
                'value', 'set event handler',
                'onclick', function()
                {
                  __selected_runtime = runtimes.getSelectedRuntimeId();
                  if(__selected_runtime)
                  {
                    host_tabs.activeTab.addEventListener(this.nextSibling.value, spotlight);
                  }
                  else
                  {
                    alert('please select a runtime in "Runtimes"');
                  }
                }
              ], ['input', 'value', 'mouseover']
            ],
            ['p', 
              ['input', 
                'type', 'button',
                'value', 'remove event handler',
                'onclick', function()
                {
                  services['ecmascript-debugger'].clearSpotlight(__selected_runtime);
                  host_tabs.activeTab.removeEventListener(this.nextSibling.value, spotlight);
                }
              ], ['input', 'value', 'mouseover']
            ]
          ]
        );
      }
    }
    
  }



}


Documentation generated by JSDoc on Thu Oct 30 18:01:10 2008