Class Index | File Index

Classes


Class Biojs.Utils


Defined in: Biojs.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
<static>  
Biojs.Utils.console
Cross-browser console for debugging.
Method Summary
Method Attributes Method Name and Description
<static>  
Biojs.Utils.clone(object)
Clone all members from an object.
<static>  
Biojs.Utils.isEmpty(o)
Determine if an onject or array is empty.
Class Detail
Biojs.Utils()
Field Detail
<static> Biojs.Utils.console
Cross-browser console for debugging. The console is disabled by default. That means, all messages written by means Biojs.console.log("My Message") will be ignored. Use Biojs.console.enable() to enable it.
// Enabling loggin messages 
Biojs.console.enable();
... 
// Writing a log
Biojs.console.log("My Message");
Method Detail
<static> {object} Biojs.Utils.clone(object)
Clone all members from an object.
Parameters:
{object} object
The object to be cloned.
Returns:
{object} A Clone of the object passed as argument.

<static> {bool} Biojs.Utils.isEmpty(o)
Determine if an onject or array is empty.
Parameters:
{object|array} o
Either object or array to figure out if empty or not.
Returns:
{bool} true if empty, false if don't

Documentation generated by JsDoc Toolkit 2.3.2 on Fri Aug 23 2013 13:38:38 GMT+0100 (BST)