Class bootstrap

Class Summary
Constructor Attributes Constructor Name and Description
 
Bootstraps functions which requires the DOM to be loaded before execution can be done.
Method Summary
Method Attributes Method Name and Description
 
attach(el, fn)
Attaches a element and a function which should be executed on the element when the DOM are loaded.
 
load()
Executes all functions assinged to the bootstrap.
Class Detail
bootstrap()
Bootstraps functions which requires the DOM to be loaded before execution can be done. The functions assigned to the bootstrap will be executed when the DOM are loaded.
  <script type="text/javascript">

      // Function which need to access the DOM
      function doSomething(el){
          var e = document.getElementById(el);
      };

      // Init domstrap
      var doc = new bootstrap();
      doc.attach('target',doSomething);

  </script>

  <div id="target">
      Do something on this element
  </div>
Method Detail
attach(el, fn)
Attaches a element and a function which should be executed on the element when the DOM are loaded.
Parameters:
el
{String} Identifyer of the element in the DOM which the functions should work on.
fn
{Function} A function to be executed on the element.

load()
Executes all functions assinged to the bootstrap.

Documentation generated by JsDoc Toolkit 2.0.2 on Sun May 31 2009 21:15:21 GMT+0200 (CEST)