Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cufon.refresh() no longer attemps to track anything but selectors (st…

…rings). May have previously caused errors in IE if Cufon.replace() was called in certain ways.
  • Loading branch information...
commit 735b29dac1e5bd7be25758f02b3546e38b45de95 1 parent 69555ad
@sorccu authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 js/cufon.js
View
7 js/cufon.js
@@ -938,8 +938,11 @@ var Cufon = (function() {
options.textGradient = CSS.gradient(options.color);
}
else delete options.textGradient;
- if (!ignoreHistory) replaceHistory.add(elements, arguments);
- if (elements.nodeType || typeof elements == 'string') elements = [ elements ];
+ if (typeof elements == 'string') {
+ if (!ignoreHistory) replaceHistory.add(elements, arguments);
+ elements = [ elements ];
+ }
+ else if (elements.nodeType) elements = [ elements ];
CSS.ready(function() {
for (var i = 0, l = elements.length; i < l; ++i) {
var el = elements[i];
Please sign in to comment.
Something went wrong with that request. Please try again.