Skip to content

Commit

Permalink
changes for new version of jquery
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav-netspi committed Jan 28, 2013
1 parent 52a7da1 commit 594e6de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vendor/assets/javascripts/sparkline/jquery.sparkline.js
Expand Up @@ -595,7 +595,7 @@
}
if ($.browser.hasCanvas) {
target = new VCanvas_canvas(width, height, this, interact);
} else if ($.browser.msie) {
} else if (navigator.appName == 'Microsoft Internet Explorer') {
target = new VCanvas_vml(width, height, this);
} else {
return false;
Expand Down Expand Up @@ -2500,7 +2500,7 @@
// Setup a very simple "virtual canvas" to make drawing the few shapes we need easier
// This is accessible as $(foo).simpledraw()

if ($.browser.msie && !document.namespaces.v) {
if ((navigator.appName == 'Microsoft Internet Explorer') && !document.namespaces.v) {
document.namespaces.add('v', 'urn:schemas-microsoft-com:vml', '#default#VML');
}

Expand Down

0 comments on commit 594e6de

Please sign in to comment.