Browse Source

Fix typo in context2d for imageSmoothingEnabled

getter instead of setter.
v1.x
Moritz Peters 12 years ago
parent
commit
3cc99d5f98
  1. 3
      lib/context2d.js

3
lib/context2d.js

@ -1,4 +1,3 @@
/*!
* Canvas - Context2d
* Copyright (c) 2010 LearnBoost <tj@learnboost.com>
@ -116,7 +115,7 @@ Context2d.prototype.__defineSetter__('imageSmoothingEnabled', function(val){
* @api public
*/
Context2d.prototype.__defineSetter__('imageSmoothingEnabled', function(val){
Context2d.prototype.__defineGetter__('imageSmoothingEnabled', function(val){
return !! this._imageSmoothing;
});

Loading…
Cancel
Save