mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 06:42:29 +01:00
Fix bare assignment with object destructuring in FF41.
This commit is contained in:
@@ -479,7 +479,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
|
||||
if (fileName == null)
|
||||
if (info)
|
||||
({ file: fileName, line: lineNumber, context: ctxt }) = info;
|
||||
({ file: fileName, line: lineNumber, context: ctxt } = info);
|
||||
|
||||
if (fileName && fileName[0] == "[")
|
||||
fileName = "dactyl://command-line/";
|
||||
|
||||
@@ -408,7 +408,7 @@ var DOM = Class("DOM", {
|
||||
|
||||
return this.each(function (elem, i) {
|
||||
if (func)
|
||||
({ left, top }) = func.call(this, elem, i);
|
||||
({ left, top } = func.call(this, elem, i));
|
||||
|
||||
if (elem instanceof Ci.nsIDOMWindow)
|
||||
elem.scrollTo(left == null ? elem.scrollX : left,
|
||||
@@ -966,7 +966,7 @@ var DOM = Class("DOM", {
|
||||
&& parent.style.overflow == "visible")
|
||||
return;
|
||||
|
||||
({ rect }) = DOM(elem);
|
||||
({ rect } = DOM(elem));
|
||||
let { viewport } = parent;
|
||||
let isect = util.intersection(rect, viewport);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user