1
0
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:
Doug Kearns
2015-06-23 14:37:48 +10:00
parent d3cb216478
commit 35176d50ac
2 changed files with 3 additions and 3 deletions

View File

@@ -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/";

View File

@@ -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);