Skip to end of metadata
Go to start of metadata

static NodePtr FB::DOM::Node::create ( const FB::JSObjectPtr api  )  [inline, static]

Creates a FB::DOM::Node object from a JSObjectPtr representing a DOM node. This will probably throw an exception and definitely not work right if the js object represented is not a node.

Parameters:
api The FB::JSObjectAPI object containing the node to wrap
Returns:
FB::DOM::NodePtr to the created Node object

Reimplemented in FB::DOM::Document, FB::DOM::Element, and FB::DOM::Window.

Definition at line 74 of file ScriptingCore/DOM/Node.h.

Referenced by getNode().

00074                                                         {
00075             if (!api) { return NodePtr(); }
00076             return api->getHost()->_createNode(api);
00077         }


Generated on 24 May 2013 for FireBreath by  doxygen 1.6.1
Labels
  • None