Skip to content

Commit

Permalink
Fixed a few annoying bugs
Browse files Browse the repository at this point in the history
- A bug which prevented some animations in jQuery v1.8.
- A bug which prevented the 'end' property from being animated if the
'inDegrees' property was equal to 'false'
  • Loading branch information
Caleb Evans committed Aug 15, 2012
1 parent 7501e28 commit e535864
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
6 changes: 4 additions & 2 deletions jcanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,7 @@ function hideProps(obj) {
var i;
for (i=0; i<cssProps.length; i+=1) {
obj['_' + cssProps[i]] = obj[cssProps[i]];
delete obj[cssProps[i]];
}
}

Expand Down Expand Up @@ -962,7 +963,7 @@ $.fn.stopLayerGroup = function(name, clearQueue) {
for (e=0; e<$elems.length; e+=1) {
$elem = $($elems[e]);
group = $elem.getLayerGroup(name);
// Delay all layers in the group
// Stop all layers in the group
for (g=0; g<group.length; g+=1) {
$elem.stopLayer.call($elem, name, clearQueue);
}
Expand Down Expand Up @@ -1248,10 +1249,11 @@ $.fn.drawRect = function self(args) {
$.fn.drawArc = function self(args) {
var $elems = this, e, ctx,
params = merge(new Prefs(), args);
args = args || {};

// Change default end angle to radians if necessary
if (!params.inDegrees && params.end === 360) {
params.end = PI * 2;
args.end = params.end = PI * 2;
}

for (e=0; e<$elems.length; e+=1) {
Expand Down

0 comments on commit e535864

Please sign in to comment.