Fix issue 924 by calling jQ .attr() for empty object, which basically will return 'undefined' instead of 'this'
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2066 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
70429df0cd
commit
c15e813afb
|
@ -48,7 +48,7 @@ if(window.opera) {
|
|||
var proxied = jQuery.fn.attr, svgns = "http://www.w3.org/2000/svg";
|
||||
jQuery.fn.attr = function(key, value) {
|
||||
var len = this.length;
|
||||
if(!len) return this;
|
||||
if(!len) return proxied.apply(this, arguments);
|
||||
for(var i=0; i<len; i++) {
|
||||
var elem = this[i];
|
||||
// set/get SVG attribute
|
||||
|
|
Loading…
Reference in New Issue