Skip to content

Commit

Permalink
Fixed a bug that caused Cufon.refresh() (or multiple .replace() calls…
Browse files Browse the repository at this point in the history
… on the same element) to fail.
  • Loading branch information
sorccu committed Sep 30, 2009
1 parent d626df1 commit e9aec84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/cufon.js
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ Cufon.registerEngine('canvas', (function() {

var redraw = (text === null);

if (redraw) text = node.alt;
if (redraw) text = node.getAttribute('alt');

var viewBox = font.viewBox;

Expand Down Expand Up @@ -890,7 +890,7 @@ Cufon.registerEngine('canvas', (function() {
else {
wrapper = document.createElement('cufon');
wrapper.className = 'cufon cufon-canvas';
wrapper.alt = text;
wrapper.setAttribute('alt', text);

canvas = document.createElement('canvas');
wrapper.appendChild(canvas);
Expand Down

0 comments on commit e9aec84

Please sign in to comment.