mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-31 01:09:22 +02:00
export "getPrototypeOf" as var instead of const
to make it run in phantomjs (for tests) and browsers that don't support ES6's const yet.
This commit is contained in:
committed by
Tom MacWright
parent
2b488b5567
commit
02e9f1f55a
@@ -157,7 +157,7 @@
|
||||
}
|
||||
|
||||
/* eslint-disable no-proto */
|
||||
const getPrototypeOf = Object.getPrototypeOf || function(obj) { return obj.__proto__; };
|
||||
var getPrototypeOf = Object.getPrototypeOf || function(obj) { return obj.__proto__; };
|
||||
/* eslint-enable no-proto */
|
||||
|
||||
function asyncMap(inputs, func, callback) {
|
||||
|
||||
@@ -151,7 +151,7 @@ export function fastMouse(container) {
|
||||
}
|
||||
|
||||
/* eslint-disable no-proto */
|
||||
export const getPrototypeOf = Object.getPrototypeOf || function(obj) { return obj.__proto__; };
|
||||
export var getPrototypeOf = Object.getPrototypeOf || function(obj) { return obj.__proto__; };
|
||||
/* eslint-enable no-proto */
|
||||
|
||||
export function asyncMap(inputs, func, callback) {
|
||||
|
||||
Reference in New Issue
Block a user