Skip to content

Instantly share code, notes, and snippets.

@luruke
Created October 25, 2019 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luruke/652c287fabee5a6db053b03a90109e15 to your computer and use it in GitHub Desktop.
Save luruke/652c287fabee5a6db053b03a90109e15 to your computer and use it in GitHub Desktop.
import { Component } from 'kapla';
import dom from 'gl/dom';
export default class extends Component {
init() {
dom.register(this.$el);
}
destroy() {
dom.unregister(this.$el);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment