summaryrefslogtreecommitdiff
path: root/javascript/duktape/HTMLCollection.bnd
blob: 08a162d3554254db0a8c5e26213cc7077445e944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* HTMLCollection binding for browser using duktape and libdom
 *
 * Copyright 2015 Vincent Sanders <vince@netsurf-browser.org>
 *
 * 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);
%}