|
35 | 35 | };
|
36 | 36 |
|
37 | 37 | var onKeyDown = function(event) {
|
38 |
| - if (event.keyCode == 27) { |
| 38 | + if (event.keyCode === 27) { |
39 | 39 | djdt.hide_one_level();
|
40 | 40 | }
|
41 | 41 | };
|
|
106 | 106 |
|
107 | 107 | var ajax_data = {};
|
108 | 108 |
|
109 |
| - if (this.tagName == 'BUTTON') { |
| 109 | + if (this.tagName === 'BUTTON') { |
110 | 110 | var form = this.closest('form');
|
111 | 111 | ajax_data.url = this.getAttribute('formaction');
|
112 | 112 |
|
|
116 | 116 | }
|
117 | 117 | }
|
118 | 118 |
|
119 |
| - if (this.tagName == 'A') { |
| 119 | + if (this.tagName === 'A') { |
120 | 120 | ajax_data.url = this.getAttribute('href');
|
121 | 121 | }
|
122 | 122 |
|
|
133 | 133 | event.preventDefault();
|
134 | 134 | var self = this;
|
135 | 135 | var id = this.dataset.toggleId;
|
136 |
| - var open_me = this.textContent == this.dataset.toggleOpen; |
| 136 | + var open_me = this.textContent === this.dataset.toggleOpen; |
137 | 137 | var name = this.dataset.toggleName;
|
138 | 138 | var container = this.closest('.djDebugPanelContent').querySelector('#' + name + '_' + id);
|
139 | 139 | container.querySelectorAll('.djDebugCollapsed').forEach(function(e) {
|
|
173 | 173 | // Chrome can send spurious mousemove events, so don't do anything unless the
|
174 | 174 | // cursor really moved. Otherwise, it will be impossible to expand the toolbar
|
175 | 175 | // due to djdt.handleDragged being set to true.
|
176 |
| - if (djdt.handleDragged || event.pageY != startPageY) { |
| 176 | + if (djdt.handleDragged || event.pageY !== startPageY) { |
177 | 177 | var top = baseY + event.pageY;
|
178 | 178 |
|
179 | 179 | if (top < 0) {
|
|
205 | 205 | }, 10);
|
206 | 206 | }
|
207 | 207 | });
|
208 |
| - if (djdt.cookie.get('djdt') == 'hide') { |
| 208 | + if (djdt.cookie.get('djdt') === 'hide') { |
209 | 209 | djdt.hide_toolbar(false);
|
210 | 210 | } else {
|
211 | 211 | djdt.show_toolbar();
|
|
0 commit comments