Skip to content

Problem with code that pollute array prototype #75

@jcubic

Description

@jcubic

I use filget.js with ROT.js library (for rouge like games) and it modify Array prototype and it break figlet. This can be easy fixed. The problem is this line:

for(var i in fonts){
   me.parseFont(fonts[i], fontData[i]);
}

the loop should use hasOwnProperty to filter out stuff from prototype.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions