UNPKG

tapspace

Version:

A zoomable user interface lib for web apps

23 lines (20 loc) 443 B
module.exports = function (name) { // @InteractiveComponent:removeInteraction(name) // // Unregister an interaction. If interaction does not exist, // does nothing. // // Parameters: // name // a string, name of the interaction to remove. // // return // this, for chaining // const intera = this.interactions[name] if (intera) { intera.unbind() delete this.interactions[name] } return this }