Problem with removing wire

32 views
Skip to first unread message

prateekd...@gmail.com

unread,
Sep 18, 2012, 6:13:18 AM9/18/12
to wir...@googlegroups.com

                Hi  ,

                                We are using WireIt API for our project. We use WireIt to connect 2 divs .We are not using WireEditor or any Layer for same.We only use Wires and terminals.

                Now our project require  to remove particular wire .There can be multiple wire originating from each terminal .Is there any way to delete a selected wire??

                Currently we are trying  to  fired  a event on click of wire. We are using following code to subscribe the event

 

                var w = new WireIt.Wire(term1, term2, parentEl, term1.options.wireConfig);

      w.redraw();

      alert("subscribing event");

      w.eventMouseClick.subscribe(function() {alert("hi");},w);

     alert("subscribed event");

               

                Still I am not getting any alert on click of wire.

       Please let me know if i am missing some thing or the way i am using it is wrong.

Reply all
Reply to author
Forward
0 new messages