Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update js/cufon.js #259

Open
wants to merge 1 commit into from

1 participant

@alex-volga

fix for Opera (test in 12.12)

@alex-volga alex-volga Update js/cufon.js
fix for Opera (test in 12.12)
f553ddd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 29, 2012
  1. @alex-volga

    Update js/cufon.js

    alex-volga authored
    fix for Opera (test in 12.12)
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 4 deletions.
  1. +6 −4 js/cufon.js
View
10 js/cufon.js
@@ -134,10 +134,12 @@ var Cufon = (function() {
}),
getStyle: function(el) {
- var view = document.defaultView;
- if (view && view.getComputedStyle) return new Style(view.getComputedStyle(el, null));
- if (el.currentStyle) return new Style(el.currentStyle);
- return new Style(el.style);
+ if (el != null) {
+ var view = document.defaultView;
+ if (view && view.getComputedStyle) return new Style(view.getComputedStyle(el, null));
+ if (el.currentStyle) return new Style(el.currentStyle);
+ return new Style(el.style);
+ } else return new Style();
},
gradient: cached(function(value) {
Something went wrong with that request. Please try again.