From 042fcb82b83d19bf08afd3367235ac71a60b3850 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 7 Jun 2016 16:01:04 +0100 Subject: Move javascript content handler as appropriate for updated source format --- .../handlers/javascript/duktape/HTMLCollection.bnd | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 content/handlers/javascript/duktape/HTMLCollection.bnd (limited to 'content/handlers/javascript/duktape/HTMLCollection.bnd') diff --git a/content/handlers/javascript/duktape/HTMLCollection.bnd b/content/handlers/javascript/duktape/HTMLCollection.bnd new file mode 100644 index 000000000..2ffe7027b --- /dev/null +++ b/content/handlers/javascript/duktape/HTMLCollection.bnd @@ -0,0 +1,24 @@ +/* HTMLCollection binding for browser using duktape and libdom + * + * Copyright 2015 Vincent Sanders + * + * This file is part of NetSurf, http://www.netsurf-browser.org/ + * + * Released under the terms of the MIT License, + * http://www.opensource.org/licenses/mit-license + */ + +class HTMLCollection { + private struct dom_html_collection *coll; +}; + +init HTMLCollection(struct dom_html_collection *coll) +%{ + priv->coll = coll; + dom_html_collection_ref(coll); +%} + +fini HTMLCollection() +%{ + dom_html_collection_unref(priv->coll); +%} -- cgit v1.2.3