equal
deleted
inserted
replaced
82 console.log(e.target.parentNode, this.text_elt); |
82 console.log(e.target.parentNode, this.text_elt); |
83 if(e.target.parentNode !== this.text_elt) |
83 if(e.target.parentNode !== this.text_elt) |
84 e.stopPropagation(); |
84 e.stopPropagation(); |
85 }, |
85 }, |
86 close: function(){ |
86 close: function(){ |
|
87 document.removeEventListener("click", this.bound_inhibit_click_elsewhere, true); |
87 this.reset_text(); |
88 this.reset_text(); |
88 this.reset_box(); |
89 this.reset_box(); |
89 this.element.appendChild(this.button_elt); |
90 this.element.appendChild(this.button_elt); |
|
91 this.opened = false; |
90 this.apply_cache(); |
92 this.apply_cache(); |
91 document.removeEventListener("click", this.bound_inhibit_click_elsewhere, true); |
|
92 this.opened = false; |
|
93 }, |
93 }, |
94 set_complete_text: function(){ |
94 set_complete_text: function(){ |
95 let spans = this.text_elt.children; |
95 let spans = this.text_elt.children; |
96 let c = 0; |
96 let c = 0; |
97 for(let item of this.content){ |
97 for(let item of this.content){ |