Mercurial > hg > digilib-old
comparison webapp/src/main/webapp/jquery/svg/jquery.svganim.js @ 1151:139ad480333b
update jquery svg plugin to ver. 1.4.6
author | hertzhaft |
---|---|
date | Mon, 26 Nov 2012 23:49:41 +0100 |
parents | 301ef9bf1965 |
children |
comparison
equal
deleted
inserted
replaced
1150:d9d17eb3d731 | 1151:139ad480333b |
---|---|
1 /* http://keith-wood.name/svg.html | 1 /* http://keith-wood.name/svg.html |
2 SVG attribute animations for jQuery v1.4.4. | 2 SVG attribute animations for jQuery v1.4.5. |
3 Written by Keith Wood (kbwood{at}iinet.com.au) June 2008. | 3 Written by Keith Wood (kbwood{at}iinet.com.au) June 2008. |
4 Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and | 4 Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and |
5 MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses. | 5 MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses. |
6 Please attribute the author if you use it. */ | 6 Please attribute the author if you use it. */ |
7 | 7 |
277 elem = $(elem); | 277 elem = $(elem); |
278 var colour; | 278 var colour; |
279 do { | 279 do { |
280 colour = elem.attr(attr) || elem.css(attr); | 280 colour = elem.attr(attr) || elem.css(attr); |
281 // Keep going until we find an element that has colour, or exit SVG | 281 // Keep going until we find an element that has colour, or exit SVG |
282 if ((colour != '' && colour != 'none') || elem.hasClass('hasSVG')) { | 282 if ((colour != '' && colour != 'none') || elem.hasClass($.svg.markerClassName)) { |
283 break; | 283 break; |
284 } | 284 } |
285 } while (elem = elem.parent()); | 285 } while (elem = elem.parent()); |
286 return $.svg._getRGB(colour); | 286 return $.svg._getRGB(colour); |
287 }; | 287 }; |