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-75d572ba1ddd
master
Ahmad Syazwan 2012-03-22 07:43:11 +00:00
parent 70429df0cd
commit c15e813afb
1 changed files with 1 additions and 1 deletions

View File

@ -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