FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
static NodePtr FB::DOM::Node::create ( const FB::JSObjectPtr api)
inlinestatic

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
apiThe FB::JSObjectAPI object containing the node to wrap
Returns
FB::DOM::NodePtr to the created Node object

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

Referenced by getNode().

74  {
75  if (!api) { return NodePtr(); }
76  return api->getHost()->_createNode(api);
77  }
boost::shared_ptr< Node > NodePtr
shared_ptr for a FB::DOM::Node