Merge pull request #1890 from pivotal-medici/skip_inherited_properties

Skip properties inherited from array.prototype
This commit is contained in:
Yury Delendik 2012-07-11 09:21:13 -07:00
commit 4d0b478756

View File

@ -2773,6 +2773,7 @@ var Font = (function FontClosure() {
}
}
for (var index in newGlyphUnicodes) {
if (newGlyphUnicodes.hasOwnProperty(index)) {
var unicode = newGlyphUnicodes[index];
if (reverseMap[unicode]) {
// avoiding assigning to the same unicode
@ -2782,6 +2783,7 @@ var Font = (function FontClosure() {
glyphs[index].unicode = unicode;
reverseMap[unicode] = index;
}
}
this.useToFontChar = true;
}