59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
  | 
    _createCloseButton () {
        let xButton = createNode("div", {className: "grammalecte_close_button", textContent: "×", title: "Fermer la fenêtre"});
        xButton.onclick = function () { this.hide(); }.bind(this);  // better than writing “let that = this;” before the function?
        return xButton;
    }
    setContent (xNode) {
        this.xContentNode.appendChild(xNode);
    }
    insertIntoPage () {
        document.body.appendChild(this.xPanelNode);
    }
 | 
|
  | 
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
  | 
    _createCloseButton () {
        let xButton = createNode("div", {className: "grammalecte_close_button", textContent: "×", title: "Fermer la fenêtre"});
        xButton.onclick = function () { this.hide(); }.bind(this);  // better than writing “let that = this;” before the function?
        return xButton;
    }
    setContentNode (xNode) {
        this.xContentNode.appendChild(xNode);
    }
    insertIntoPage () {
        document.body.appendChild(this.xPanelNode);
    }
 |