Skip to content

conflict with prototype.js #137

Open
@damianhodgkiss

Description

@damianhodgkiss

hey guys,

had a conflict with prototype.js extending the native object with methods so when Object.keys was called it returned the method names too.. fixed by patching _prepareData as follows with the hasOwnProperty checks:

    while(xValuesLen--) {
      var xValue = xValues[xValuesLen];
      if (!data.hasOwnProperty(xValue)) continue;
      var yValues = Object.keys(data[xValue]);
      var yValuesLen = yValues.length;
      while(yValuesLen--) {
        var yValue = yValues[yValuesLen];
        if (!data[xValue].hasOwnProperty(yValue)) continue;

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions