1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-25 07:32:39 +01:00

Fix Ary#toString et al.

This commit is contained in:
Doug Kearns
2015-06-25 18:51:26 +10:00
parent befd0d8658
commit 03322645a9

View File

@@ -1819,7 +1819,7 @@ var Ary = Class("Ary", Array, {
if (prop == "array")
return target;
if (prop in Ary && callable(Ary[prop]))
if (hasOwnProperty(Ary, prop) && callable(Ary[prop]))
return arrayWrap(Ary[prop].bind(Ary, target));
let p = target[prop];