| Index: Source/bindings/templates/methods.cpp
|
| diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp
|
| index 4966ee5ba8358fae8c748344c7ba247918bb3f69..773e13f5af66a47d50b3111d18760bec86bdca05 100644
|
| --- a/Source/bindings/templates/methods.cpp
|
| +++ b/Source/bindings/templates/methods.cpp
|
| @@ -616,8 +616,12 @@ v8::Handle<v8::Object> wrapper = wrap(impl.get(), info.Holder(), info.GetIsolate
|
| if constructor.is_named_constructor else
|
| '') %}
|
| v8::Handle<v8::Object> wrapper = info.Holder();
|
| +{% if is_script_wrappable %}
|
| +impl.get()->associateWithWrapper(&{{constructor_class}}::wrapperTypeInfo, wrapper, info.GetIsolate());
|
| +{% else %}
|
| V8DOMWrapper::associateObjectWithWrapper<{{v8_class}}>(impl.release(), &{{constructor_class}}::wrapperTypeInfo, wrapper, info.GetIsolate());
|
| {% endif %}
|
| +{% endif %}
|
| v8SetReturnValue(info, wrapper);
|
| {% endmacro %}
|
|
|
|
|