Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Bugfix in analyser
Browse files Browse the repository at this point in the history
  • Loading branch information
hellerve committed May 8, 2015
1 parent b0f7f8d commit 196e5ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/widgets/analyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ var analyzer = function(context) {
_node.canvas = function(canvas) {
if (canvas.localName !== 'canvas') return;
if (_canvas === null) requestAnimationFrame(_node.draw);
var _canvas = canvas;
var _canvasCtx = _canvas.getContext('2d');
_canvas = canvas;
_canvasCtx = _canvas.getContext('2d');
_canvasCtx.clearRect(0, 0, _canvas.width, _canvas.height);
};

Expand Down

0 comments on commit 196e5ef

Please sign in to comment.