Skip to content

Commit

Permalink
minor cleanup improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Malone committed Mar 31, 2016
1 parent 95fae7b commit 8b51095
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"gulp-babel": "^6.1.2",
"gulp-bump": "^0.1.11",
"gulp-changed": "^1.3.0",
"gulp-concat": "^2.6.0",
"gulp-eslint": "^1.0.0",
"gulp-insert": "^0.5.0",
"gulp-notify": "^2.2.0",
Expand Down
1 change: 1 addition & 0 deletions src/dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export class Dragula {
destroy() {
this._events(true);
this._release({});
this.emitter.destroy();
}

_preventGrabbed(e) {
Expand Down
4 changes: 4 additions & 0 deletions src/emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ export class Emitter {
}
}

destroy() {
this.events = {};
}

emit() {
let args = arguments ? [...arguments] : [];
let type = args.shift();
Expand Down

0 comments on commit 8b51095

Please sign in to comment.