Kdfinit function

From KallestadWiki

Jump to: navigation, search

KDF Init

The kdfinit function is where object initialization should happen. This occurs after page load, as part of the post-display-loader set of routines.

In order to initialize anything, you should be sure that what you are initializing exists. If it does not exist, recursively call the kdfinit function until it does.

var init_objects = new Array;
function kdfinit(){
 if(typeof arbitrary_init_function == 'function'){
  arbitrary_init_function();
 }

 if (init_objects.length ==0){
  return;
 } else {
  setTimeout("kdfinit()",400);
 }
}


Kallestad Development Framework Topics

Personal tools