Fossil SCM

Removed a pair of bogus "delete" calls in fossil.popupwidget.js, flagged by Google Closure Compiler. You can't delete the result of a function call, only object properties.

wyoung 2020-08-20 19:52 trunk
Commit 0d7d54e870160b16215b4aa5cc9cebf6e09428c0589c38b34ee367495a65c305
1 file changed +2 -2
--- src/fossil.popupwidget.js
+++ src/fossil.popupwidget.js
@@ -176,12 +176,12 @@
176176
this.e.style.top = y+"px";
177177
}
178178
D.removeClass(this.e, 'hidden');
179179
}else{
180180
D.addClass(this.e, 'hidden');
181
- delete this.e.style.removeProperty('left');
182
- delete this.e.style.removeProperty('top');
181
+ this.e.style.removeProperty('left');
182
+ this.e.style.removeProperty('top');
183183
}
184184
return this;
185185
},
186186
187187
hide: function(){return this.show(false)}
188188
--- src/fossil.popupwidget.js
+++ src/fossil.popupwidget.js
@@ -176,12 +176,12 @@
176 this.e.style.top = y+"px";
177 }
178 D.removeClass(this.e, 'hidden');
179 }else{
180 D.addClass(this.e, 'hidden');
181 delete this.e.style.removeProperty('left');
182 delete this.e.style.removeProperty('top');
183 }
184 return this;
185 },
186
187 hide: function(){return this.show(false)}
188
--- src/fossil.popupwidget.js
+++ src/fossil.popupwidget.js
@@ -176,12 +176,12 @@
176 this.e.style.top = y+"px";
177 }
178 D.removeClass(this.e, 'hidden');
179 }else{
180 D.addClass(this.e, 'hidden');
181 this.e.style.removeProperty('left');
182 this.e.style.removeProperty('top');
183 }
184 return this;
185 },
186
187 hide: function(){return this.show(false)}
188

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button