SIGN IN SIGN UP
chartjs / Chart.js UNCLAIMED

Simple HTML5 Charts using the <canvas> tag

0 0 1 JavaScript

Fix failing instanceof when reading context

`instanceof HTMLCanvasElement/CanvasRenderingContext2D` fails when the item is inside an iframe or when running in a protected environment. We could guess the types from their toString() value but let's keep things flexible and assume it's a sufficient condition if the item has a context2D which has item as `canvas`.
S
Simon Brunel committed
f7d2d7536a03b58b99c3a67cd93b58d24f811425
Parent: f2c569e
Committed by Evert Timberg <evert.timberg+github@gmail.com> on 4/22/2017, 5:14:16 PM