Bonjour à tous,
S'il vous plait j'ai une class dojo :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
dojo.declare(
            "maClass",
            dijit._Widget,
            {
                 gabarit: null,
                 constructor: function (gabarit) {
                    if (gabarit == "[object HTMLDocument]") {
                        this.gabarit = gabarit;
                    }
                    console.log(this.gabarit);
 
                },
je cree un objet Domdocument par 'document.implementation.createDocument' puis je le pass en parametre au constructeur de maClass, alors il m'affiche la console.log de thi.gabarit que c'est un domDocument puis il m'affiche cette erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
uncaught exception: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMNSDocument.activeElement]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://localhost/MyWorkspace/Test/dojo/dojo/dojo.js :: anonymous :: line 16" data: no]
d'ou vient cette erreur??
et Merci