I have this control to load an SVG document (works, SVG is displayed normally)
enyo.kind({ name: "SvgParser", kind:"Control", fit: true, published: { source:'' }, components:[{ tag: "object", // Or Embed name:'svgObject', classes: 'SvgObject', ontap:'click', onload:'loaded' }], create: function() { this.inherited(arguments); this.sourceChanged(); }, click: function(inSender, inEvent) { console.log('click'); // doesn't happen }, sourceChanged: function() { this.$.svgObject.attributes.type = 'image/svg+xml'; this.$.svgObject.attributes.data = this.source; }, loaded: function(inSender, inEvent) { console.log('loaded'); // doesn't happen } });
but the event handlers for "tap" and "load" never fire, can someone explain to me what I'm doing wrong? thanks in advance
source share