PDA

View Full Version : How to add new method to svg



thomsonzhang
6 Jun 2014, 10:50 AM
Hi,

I add some click function in my chart. When I run it in IE,(chrome and firefox no this problem). I got script error as below,



SCRIPT438: Object doesn't support property or method 'blur' .




How can I add new method to SVG? I did the code below, it is not working.



Ext.define('Ext.draw.engine.Svg',
{
extend: 'Ext.draw.engine.Svg',
initialize: function() {
this.callOverridden(arguments);
},

blur: function () {
alert('blur is working');
}
});

Any suggestion, many thanks.
49259

Gary Schlosberg
14 Jun 2014, 4:11 PM
Duplicate?
http://www.sencha.com/forum/showthread.php?286776