can't overwrite the iOS event.scale and found a hole in 'has'

This commit is contained in:
Gavin McDonald
2018-09-24 21:44:33 -04:00
parent 9fc0ca46c5
commit 43339169c0
2 changed files with 6 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ export function clone(obj) {
}
export function has(obj, prop) {
return obj && obj.hasOwnProperty(prop);
return obj && (obj.hasOwnProperty(prop) || (prop in obj));
}
export function hypotenuse(a, b) {