www.webOShelp.net

Get the latest on:webOS Developers' RSS FeedwebOS Facebook page webOS Twitter Feed

Home Resources API Reference Mojo.Function.Synchronize.wrap

Mojo.Function.Synchronize.wrap

Function to wrap a function within a Mojo.Function.Synchronize object so that it is called simultaneously with all other wrapped callbacks.  Returns wrapped Function that can be passed instead of the original callback function.

Parameter Type Description
callback Function Function to be wrapped and synchronized.

Example usage:

     var synchronizer = new Mojo.Function.Synchronize({
syncCallback: this.continueSceneTransition()});
var doNothing = function() {};
var otherWrapper = synchronizer.wrap(doNothing);

curScene.aboutToActivate(synchronizer.wrap(doNothing));
beginOtherOperation(otherWrapper);
 

0 Comments

    Add Comment


      • >:o
      • :-[
      • :'(
      • :-(
      • :-D
      • :-*
      • :-)
      • :P
      • :\
      • 8-)
      • ;-)