Handling events with SVG control in Enyo 2.0 (object or embed tag)?

You actually have two separate problems, one preventing the load handler from working and the other preventing the tap handler from working.

The events aren't being triggered because you're trying to modify DOM node attributes when the DOM node for the Enyo component hasn't been created yet. DOM nodes are created when the component is rendered. Move your sourceChanged() function to the control's rendered() function or if you need it in the control's create() function, call hasNode() on the control to force it to create the DOM node first.

Try this version of your sourceChanged() function and see if it works.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions