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:
Martin Raifer
2016-06-15 11:01:04 +02:00
committed by Tom MacWright
parent 2b488b5567
commit 02e9f1f55a
2 changed files with 2 additions and 2 deletions

View File

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

View File

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