Skip to content

Commit

Permalink
Added a supposed fix for working with patterns in IE9
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Evans committed Jul 19, 2012
1 parent a1a250c commit 39dd4bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions jcanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,8 @@ $.fn.pattern = function(args) {
onload();
} else {
img.onload = onload;
// Image onload fix for IE9
img.src = img.src;
}

}
Expand Down Expand Up @@ -1242,6 +1244,7 @@ $.fn.removeLayerGroup = function(name) {
// Remove layer if group name matches
if (layers[l].group === name) {
layers.splice(l, 1);
// Ensure no layers are skipped when one is removed
l -= 1;
}
}
Expand Down
6 changes: 3 additions & 3 deletions jcanvas.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 39dd4bd

Please sign in to comment.