Class Index | File Index

Classes


Class YCallPile


Defined in: YCallPile.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
YCallPile(owner)
enable asychronous calls in anobject waiting for some events to be operational.
Field Summary
Field Attributes Field Name and Description
 
set to false once fired to wait for an other task.
Method Summary
Method Attributes Method Name and Description
 
call(funkname, params)
bufferise delayed call fromowner function.
 
fire()
fire delayed callsUse when owner is operationnal
Class Detail
YCallPile(owner)
enable asychronous calls in anobject waiting for some events to be operational.
exemple :
this.asyncFunction = function(data1,data2,data3){
  if(!this.callpile.fired){   this.callpile.call("asyncFunction",[data1,data2,data3]);
  }else{ DO STUFF ... }
};
Parameters:
{object} owner
The object using callpile.
Field Detail
fired
set to false once fired to wait for an other task.
Method Detail
call(funkname, params)
bufferise delayed call fromowner function.
Parameters:
{string} funkname
name of the function to be called
{array} params
parameters values used by the function.

fire()
fire delayed callsUse when owner is operationnal

Documentation generated by JsDoc Toolkit 2.4.0 on Sat Nov 16 2013 03:47:43 GMT+0100 (CET)