Class YCallPile
Defined in: YCallPile.js.
Constructor Attributes | Constructor Name and Description |
---|---|
YCallPile(owner)
enable asychronous calls in anobject waiting for some events to be operational.
|
Field Attributes | Field Name and Description |
---|---|
set to false once fired to wait for an other task.
|
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 ... }
};
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