summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp')
-rw-r--r--WebCore/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/WebCore/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp b/WebCore/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp
index 58a85dc..ef428a9 100644
--- a/WebCore/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp
+++ b/WebCore/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp
@@ -52,8 +52,7 @@ static v8::Handle<v8::Value> getNamedItems(HTMLAllCollection* collection, Atomic
if (namedItems.size() == 1)
return toV8(namedItems.at(0).release());
- NodeList* list = new V8NamedNodesCollection(namedItems);
- return toV8(list);
+ return toV8(V8NamedNodesCollection::create(namedItems));
}
static v8::Handle<v8::Value> getItem(HTMLAllCollection* collection, v8::Handle<v8::Value> argument)