Page tree
Skip to end of metadata
Go to start of metadata

void FB::JSAPI::registerEventMethod ( const std::wstring &  name,
JSObjectPtr event 
)
inlinevirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Reimplemented in FB::JSAPIImpl.

Definition at line 190 of file JSAPI.h.

References registerEventMethod(), and FB::wstring_to_utf8().

191  {
192  registerEventMethod(wstring_to_utf8(name), event);
193  }
virtual void registerEventMethod(const std::string &name, JSObjectPtr &event)
Called by the browser to register an event handler method.
Definition: JSAPI.h:182
std::string wstring_to_utf8(const std::wstring &src)
Accepts a std::wstring and returns a UTF8-encoded std::string.
Definition: utf8_tools.cpp:37

Here is the call graph for this function:

  • No labels