replace bitwise OR with Math.round

This commit is contained in:
Лаврёнов Антон
2014-03-04 20:04:39 +08:00
parent e136a69e12
commit 347e4d697f
2 changed files with 2 additions and 2 deletions

View File

@@ -334,7 +334,7 @@
* @param {Object} imageData
*/
Kinetic.Filters.Blur = function(imageData) {
var radius = this.blurRadius() | 0;
var radius = Math.round(this.blurRadius());
if (radius > 0) {
filterGaussBlurRGBA(imageData, radius);