提交 1e2dcbd8 编写于 作者: J James Baicoianu

Use image.src if HTMLCanvasElement is undefined

上级 ea8cfa63
......@@ -10,7 +10,11 @@ var ImageUtils = {
var canvas;
if ( image instanceof HTMLCanvasElement ) {
if ( typeof HTMLCanvasElement == 'undefined' ) {
return image.src;
} if ( image instanceof HTMLCanvasElement ) {
canvas = image;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册