remove warning of deprecated functions about imageSmoothingEnabled

This commit is contained in:
Andrea Bogazzi 2016-04-11 15:46:51 +02:00
parent c6815892f3
commit 5aa0ad1b8c

View file

@ -382,14 +382,9 @@
_setImageSmoothing: function() {
var ctx = this.getContext();
if (typeof ctx.imageSmoothingEnabled !== 'undefined') {
ctx.imageSmoothingEnabled = this.imageSmoothingEnabled;
return;
}
ctx.webkitImageSmoothingEnabled = this.imageSmoothingEnabled;
ctx.mozImageSmoothingEnabled = this.imageSmoothingEnabled;
ctx.msImageSmoothingEnabled = this.imageSmoothingEnabled;
ctx.oImageSmoothingEnabled = this.imageSmoothingEnabled;
ctx.imageSmoothingEnabled = ctx.imageSmoothingEnabled || ctx.webkitImageSmoothingEnabled
|| ctx.mozImageSmoothingEnabled || ctx.msImageSmoothingEnabled || ctx.oImageSmoothingEnabled;
ctx.imageSmoothingEnabled = this.imageSmoothingEnabled;
},
/**