Skip to content

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Malone committed Apr 1, 2016
1 parent df525da commit 8ef5fca
Show file tree
Hide file tree
Showing 15 changed files with 41 additions and 5 deletions.
2 changes: 2 additions & 0 deletions dist/amd/dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ define(['exports', 'aurelia-dependency-injection', './touchy', './options', './u
Dragula.prototype.destroy = function destroy() {
this._events(true);
this._release({});
this.emitter.destroy();
};

Dragula.prototype._preventGrabbed = function _preventGrabbed(e) {
Expand Down Expand Up @@ -183,6 +184,7 @@ define(['exports', 'aurelia-dependency-injection', './touchy', './options', './u

classes.add(this._copy || this._item, 'gu-transit');
this.renderMirrorImage();
this.drag(e);
};

Dragula.prototype._canStart = function _canStart(item) {
Expand Down
4 changes: 4 additions & 0 deletions dist/amd/emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ define(['exports'], function (exports) {
}
};

Emitter.prototype.destroy = function destroy() {
this.events = {};
};

Emitter.prototype.emit = function emit() {
var _this = this;

Expand Down
2 changes: 1 addition & 1 deletion dist/amd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ define(['exports', './options', './dragula', './move-before'], function (exports
exports.moveBefore = _moveBefore.moveBefore;
function configure(config, callback) {
var defaults = new _options.Options();
config.container.registerSingleton(_options.GLOBAL_OPTIONS, defaults);
config.container.registerInstance(_options.GLOBAL_OPTIONS, defaults);

if (callback !== undefined && typeof callback === 'function') {
callback(defaults);
Expand Down
6 changes: 6 additions & 0 deletions dist/aurelia-dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ export class Dragula {
destroy() {
this._events(true);
this._release({});
this.emitter.destroy();
}

_preventGrabbed(e) {
Expand Down Expand Up @@ -308,6 +309,7 @@ export class Dragula {

classes.add(this._copy || this._item, 'gu-transit');
this.renderMirrorImage();
this.drag(e);
}

_canStart(item) {
Expand Down Expand Up @@ -680,6 +682,10 @@ export class Emitter {
}
}

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

emit() {
let args = arguments ? [...arguments] : [];
let type = args.shift();
Expand Down
2 changes: 2 additions & 0 deletions dist/commonjs/dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ var Dragula = exports.Dragula = function () {
Dragula.prototype.destroy = function destroy() {
this._events(true);
this._release({});
this.emitter.destroy();
};

Dragula.prototype._preventGrabbed = function _preventGrabbed(e) {
Expand Down Expand Up @@ -159,6 +160,7 @@ var Dragula = exports.Dragula = function () {

classes.add(this._copy || this._item, 'gu-transit');
this.renderMirrorImage();
this.drag(e);
};

Dragula.prototype._canStart = function _canStart(item) {
Expand Down
4 changes: 4 additions & 0 deletions dist/commonjs/emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ var Emitter = exports.Emitter = function () {
}
};

Emitter.prototype.destroy = function destroy() {
this.events = {};
};

Emitter.prototype.emit = function emit() {
var _this = this;

Expand Down
2 changes: 1 addition & 1 deletion dist/commonjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports.DIRECTION = _options.DIRECTION;
exports.moveBefore = _moveBefore.moveBefore;
function configure(config, callback) {
var defaults = new _options.Options();
config.container.registerSingleton(_options.GLOBAL_OPTIONS, defaults);
config.container.registerInstance(_options.GLOBAL_OPTIONS, defaults);

if (callback !== undefined && typeof callback === 'function') {
callback(defaults);
Expand Down
2 changes: 2 additions & 0 deletions dist/es2015/dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export let Dragula = class Dragula {
destroy() {
this._events(true);
this._release({});
this.emitter.destroy();
}

_preventGrabbed(e) {
Expand Down Expand Up @@ -146,6 +147,7 @@ export let Dragula = class Dragula {

classes.add(this._copy || this._item, 'gu-transit');
this.renderMirrorImage();
this.drag(e);
}

_canStart(item) {
Expand Down
4 changes: 4 additions & 0 deletions dist/es2015/emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ export let Emitter = class Emitter {
}
}

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

emit() {
let args = arguments ? [...arguments] : [];
let type = args.shift();
Expand Down
2 changes: 1 addition & 1 deletion dist/es2015/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export { Dragula, Options, DIRECTION, moveBefore };

export function configure(config, callback) {
let defaults = new Options();
config.container.registerSingleton(GLOBAL_OPTIONS, defaults);
config.container.registerInstance(GLOBAL_OPTIONS, defaults);

if (callback !== undefined && typeof callback === 'function') {
callback(defaults);
Expand Down
2 changes: 2 additions & 0 deletions dist/system/dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ System.register(['aurelia-dependency-injection', './touchy', './options', './uti
Dragula.prototype.destroy = function destroy() {
this._events(true);
this._release({});
this.emitter.destroy();
};

Dragula.prototype._preventGrabbed = function _preventGrabbed(e) {
Expand Down Expand Up @@ -178,6 +179,7 @@ System.register(['aurelia-dependency-injection', './touchy', './options', './uti

classes.add(this._copy || this._item, 'gu-transit');
this.renderMirrorImage();
this.drag(e);
};

Dragula.prototype._canStart = function _canStart(item) {
Expand Down
4 changes: 4 additions & 0 deletions dist/system/emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ System.register([], function (_export, _context) {
}
};

Emitter.prototype.destroy = function destroy() {
this.events = {};
};

Emitter.prototype.emit = function emit() {
var _this = this;

Expand Down
2 changes: 1 addition & 1 deletion dist/system/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ System.register(['./options', './dragula', './move-before'], function (_export,

function configure(config, callback) {
var defaults = new Options();
config.container.registerSingleton(GLOBAL_OPTIONS, defaults);
config.container.registerInstance(GLOBAL_OPTIONS, defaults);

if (callback !== undefined && typeof callback === 'function') {
callback(defaults);
Expand Down
6 changes: 6 additions & 0 deletions dist/temp/aurelia-dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ var Dragula = exports.Dragula = function () {
Dragula.prototype.destroy = function destroy() {
this._events(true);
this._release({});
this.emitter.destroy();
};

Dragula.prototype._preventGrabbed = function _preventGrabbed(e) {
Expand Down Expand Up @@ -303,6 +304,7 @@ var Dragula = exports.Dragula = function () {

classes.add(this._copy || this._item, 'gu-transit');
this.renderMirrorImage();
this.drag(e);
};

Dragula.prototype._canStart = function _canStart(item) {
Expand Down Expand Up @@ -703,6 +705,10 @@ var Emitter = exports.Emitter = function () {
}
};

Emitter.prototype.destroy = function destroy() {
this.events = {};
};

Emitter.prototype.emit = function emit() {
var _this4 = this;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-dragula",
"version": "1.0.1",
"version": "1.0.2",
"description": "An aurelia compatible version of Dragula",
"keywords": [
"aurelia",
Expand Down

0 comments on commit 8ef5fca

Please sign in to comment.