| Index: Source/bindings/v8/V8LazyEventListener.cpp
|
| diff --git a/Source/bindings/v8/V8LazyEventListener.cpp b/Source/bindings/v8/V8LazyEventListener.cpp
|
| index 29a8a337d89c9b64cf25e8dde77fd4aec8636b97..1fed2a973a0ff05ecc0b7746e87fe6e5a62a5eae 100644
|
| --- a/Source/bindings/v8/V8LazyEventListener.cpp
|
| +++ b/Source/bindings/v8/V8LazyEventListener.cpp
|
| @@ -137,6 +137,7 @@ void V8LazyEventListener::prepareListenerObject(ScriptExecutionContext* context)
|
| return;
|
|
|
| v8::Context::Scope scope(v8Context);
|
| + String listenerSource = frame->script()->preprocess(m_code, m_functionName);
|
|
|
| // FIXME: Remove the following 'with' hack.
|
| //
|
| @@ -160,7 +161,7 @@ void V8LazyEventListener::prepareListenerObject(ScriptExecutionContext* context)
|
| "with (this[1]) {"
|
| "with (this[0]) {"
|
| "return function(" + m_eventParameterName + ") {" +
|
| - m_code + "\n" // Insert '\n' otherwise //-style comments could break the handler.
|
| + listenerSource + "\n" // Insert '\n' otherwise //-style comments could break the handler.
|
| "};"
|
| "}}}})";
|
|
|
|
|