www.webOShelp.net

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

Home Resources API Reference Mojo.Log.addLoggingMethodsToPrototype(targetObject)

Mojo.Log.addLoggingMethodsToPrototype(targetObject)

Function to add standard logging methods to an object's prototype.

Parameter Type Description
targetObject Object Object whose prototype should be extended with logging methods.

Example usage:

Adds logging methods to every scene controller:

    Mojo.Log.addLoggingMethodsToPrototype(Mojo.Controller.SceneController);

Allowing you to access logging from scene assistants:

    this.controller.info("Welcome to the dollhouse.");
 

0 Comments

    Add Comment


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