summaryrefslogtreecommitdiff
path: root/javascript/jsapi/window.bnd
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/jsapi/window.bnd')
-rw-r--r--javascript/jsapi/window.bnd9
1 files changed, 8 insertions, 1 deletions
diff --git a/javascript/jsapi/window.bnd b/javascript/jsapi/window.bnd
index 288b5b3d8..937c150db 100644
--- a/javascript/jsapi/window.bnd
+++ b/javascript/jsapi/window.bnd
@@ -8,7 +8,6 @@
* http://www.opensource.org/licenses/mit-license
*/
-#include "dom.bnd"
webidlfile "html.idl";
@@ -35,12 +34,15 @@ preamble %{
#include "nodelist.h"
#include "htmldocument.h"
#include "text.h"
+#include "comment.h"
#include "htmlelement.h"
#include "window.h"
#include "location.h"
%}
+#include "dom.bnd"
+
binding window {
type js_libdom; /* the binding type */
@@ -150,6 +152,11 @@ api init %{
return NULL;
}
+ user_proto = jsapi_InitClass_Comment(cx, prototype);
+ if (user_proto == NULL) {
+ return NULL;
+ }
+
user_proto = jsapi_InitClass_Node(cx, prototype);
if (user_proto == NULL) {
return NULL;