forked from Jibo-Revival-Group/JiboOs
17 lines
830 B
JavaScript
17 lines
830 B
JavaScript
/**
|
|
* @callback jibo.bt.behaviors.ExecuteScriptAsync~ExecuteFunction
|
|
* @description This behavior calls this function. ExecuteScriptAsync will succeed or fail only when one of the
|
|
* two callbacks are called.
|
|
* @param {Function} succeed Call this function when you want this behavior to succeed.
|
|
* @param {Function} fail Call this function when you want this behavior to fail.
|
|
*/
|
|
|
|
/**
|
|
* @class ExecuteScriptAsync
|
|
* @extends jibo.bt.Behavior
|
|
* @memberof jibo.bt.behaviors
|
|
* @description Asynchronously executes JavaScript.
|
|
* @param {Object} options See {@link jibo.bt.Behavior|Behavior} for all options.
|
|
* @param {jibo.bt.behaviors.ExecuteScriptAsync~ExecuteFunction} options.exec Function to execute. Behavior will not stop unless one of the callbacks
|
|
* are called.
|
|
*/ |