...
Code Block | ||||
---|---|---|---|---|
| ||||
this.ractive.fire("obtainData"); this.ractive.on("popUp", function(event) { var item = this.get(event.keypath); var mainWin = window.parent; try { mainWin.app.ShowActionsFor (item.pointId); } catch (err) {console.error(err)} }); this.ractive.on("magicB", function(event) { var item = this.get(event.keypath); if (item) top.app.ShowRelatedBubbles(item.pointId, item.pointId, falsetrue, event); }); |
obtainData is what connects the Ractive model to the program. The function popUp is for the gears and magicB is for the magic bubbles.
...