diff options
Diffstat (limited to 'fxjs/cjs_event_context.cpp')
-rw-r--r-- | fxjs/cjs_event_context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/cjs_event_context.cpp b/fxjs/cjs_event_context.cpp index 50149c4172..70f06771d1 100644 --- a/fxjs/cjs_event_context.cpp +++ b/fxjs/cjs_event_context.cpp @@ -50,7 +50,7 @@ Optional<IJS_Runtime::JS_Error> CJS_EventContext::RunScript( Optional<IJS_Runtime::JS_Error> err; if (script.GetLength() > 0) - err = m_pRuntime->ExecuteScript(script.c_str()); + err = m_pRuntime->ExecuteScript(script); m_pRuntime->RemoveEventFromSet(event); m_pEventHandler->Destroy(); |