Skip to content

Commit

Permalink
v2.10 - fix bug in gpc fn, shouldn't traverse all the way to document…
Browse files Browse the repository at this point in the history
… node
  • Loading branch information
malsup committed May 5, 2010
1 parent ca8d745 commit 10ec19b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jquery.corner.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* jQuery corner plugin: simple corner rounding
* Examples and documentation at: http://jquery.malsup.com/corner/
* version 2.09 (11-MAR-2010)
* version 2.10 (05-MAY-2010)
* Requires jQuery v1.3.2 or later
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
Expand Down Expand Up @@ -50,6 +50,8 @@ function gpc(node) {
}
return v;
}
if (node.nodeName.toLowerCase() == 'html')
break;
node = node.parentNode; // keep walking if transparent
}
return '#ffffff';
Expand Down

0 comments on commit 10ec19b

Please sign in to comment.