Skip to content

Commit

Permalink
Bookmarklet: Using jQuery instead of document.head to append stylesheets
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed Feb 16, 2011
1 parent 9d66357 commit 08b8e07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/bookmarklet/src/bookmarklet.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
var total = scripts.length;

jQuery.each(styles, function () {
jQuery(document.head).append($('<link />', {
jQuery('head').append($('<link />', {
rel: 'stylesheet',
href: source + this
}));
Expand All @@ -47,6 +47,7 @@
jQuery(document.body).annotator();
}


if (jQuery === undefined || !jQuery.sub) {
loadjQuery();
} else {
Expand Down

0 comments on commit 08b8e07

Please sign in to comment.