Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmalonenz committed Apr 27, 2016
1 parent 27cebfc commit 9f1f523
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 85 deletions.
3 changes: 2 additions & 1 deletion dist/amd/dragula-and-drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ define(['exports', 'aurelia-templating', 'aurelia-binding', 'aurelia-dependency-
ignoreInputTextSelection: this._convertToBooleanIfRequired(this._getOption('ignoreInputTextSelection')),
mirrorContainer: this._getOption('mirrorContainer')
};

return result;
};

Expand All @@ -123,7 +124,7 @@ define(['exports', 'aurelia-templating', 'aurelia-binding', 'aurelia-dependency-
if (typeof option === 'string') {
return option.toLowerCase() === 'true';
}
return new Boolean(option);
return new Boolean(option).valueOf();
};

return DragulaAndDrop;
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ define(['exports', 'aurelia-dependency-injection', './touchy', './options', './u
if (this._mirror) {
classes.rm(this.options.mirrorContainer, 'gu-unselectable');
(0, _touchy.touchy)(document.documentElement, 'removeEventListener', 'mousemove', this.boundDrag);
_util.Util.remove(this._mirror);
_util.Util.getParent(this._mirror).removeChild(this._mirror);
this._mirror = null;
}
};
Expand Down
12 changes: 0 additions & 12 deletions dist/amd/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,6 @@ define(['exports'], function (exports) {
return immediate;
};

_Util.prototype.remove = function remove(node) {
if (node) {
if (!('remove' in Element.prototype)) {
if (node.parentNode) {
node.parentNode.removeChild(node);
}
} else {
node.remove();
}
}
};

_Util.prototype.getViewModel = function getViewModel(element) {
if (element && element.au) {
if (element.au.controller.viewModel.currentViewModel) return element.au.controller.viewModel.currentViewModel;else return element.au.controller.viewModel;
Expand Down
17 changes: 3 additions & 14 deletions dist/aurelia-dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export class DragulaAndDrop {
ignoreInputTextSelection: this._convertToBooleanIfRequired(this._getOption('ignoreInputTextSelection')),
mirrorContainer: this._getOption('mirrorContainer')
};

return result;
}

Expand All @@ -171,7 +172,7 @@ export class DragulaAndDrop {
if (typeof option === 'string') {
return option.toLowerCase() === 'true';
}
return new Boolean(option);
return new Boolean(option).valueOf();
}
}

Expand Down Expand Up @@ -613,7 +614,7 @@ export class Dragula {
if (this._mirror) {
classes.rm(this.options.mirrorContainer, 'gu-unselectable');
touchy(document.documentElement, 'removeEventListener', 'mousemove', this.boundDrag);
Util.remove(this._mirror);
Util.getParent(this._mirror).removeChild(this._mirror);
this._mirror = null;
}
}
Expand Down Expand Up @@ -901,18 +902,6 @@ class _Util {
return immediate;
}

remove(node) {
if (node) {
if (!('remove' in Element.prototype)) {
if (node.parentNode) {
node.parentNode.removeChild(node);
}
} else {
node.remove();
}
}
}

getViewModel(element) {
if (element && element.au) {
if (element.au.controller.viewModel.currentViewModel)
Expand Down
3 changes: 2 additions & 1 deletion dist/commonjs/dragula-and-drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ var DragulaAndDrop = exports.DragulaAndDrop = (_dec = (0, _aureliaTemplating.bin
ignoreInputTextSelection: this._convertToBooleanIfRequired(this._getOption('ignoreInputTextSelection')),
mirrorContainer: this._getOption('mirrorContainer')
};

return result;
};

Expand All @@ -128,7 +129,7 @@ var DragulaAndDrop = exports.DragulaAndDrop = (_dec = (0, _aureliaTemplating.bin
if (typeof option === 'string') {
return option.toLowerCase() === 'true';
}
return new Boolean(option);
return new Boolean(option).valueOf();
};

return DragulaAndDrop;
Expand Down
2 changes: 1 addition & 1 deletion dist/commonjs/dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ var Dragula = exports.Dragula = function () {
if (this._mirror) {
classes.rm(this.options.mirrorContainer, 'gu-unselectable');
(0, _touchy.touchy)(document.documentElement, 'removeEventListener', 'mousemove', this.boundDrag);
_util.Util.remove(this._mirror);
_util.Util.getParent(this._mirror).removeChild(this._mirror);
this._mirror = null;
}
};
Expand Down
12 changes: 0 additions & 12 deletions dist/commonjs/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,18 +130,6 @@ var _Util = function () {
return immediate;
};

_Util.prototype.remove = function remove(node) {
if (node) {
if (!('remove' in Element.prototype)) {
if (node.parentNode) {
node.parentNode.removeChild(node);
}
} else {
node.remove();
}
}
};

_Util.prototype.getViewModel = function getViewModel(element) {
if (element && element.au) {
if (element.au.controller.viewModel.currentViewModel) return element.au.controller.viewModel.currentViewModel;else return element.au.controller.viewModel;
Expand Down
3 changes: 2 additions & 1 deletion dist/es2015/dragula-and-drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export let DragulaAndDrop = (_dec = bindable({ name: 'moves', defaultBindingMode
ignoreInputTextSelection: this._convertToBooleanIfRequired(this._getOption('ignoreInputTextSelection')),
mirrorContainer: this._getOption('mirrorContainer')
};

return result;
}

Expand All @@ -113,6 +114,6 @@ export let DragulaAndDrop = (_dec = bindable({ name: 'moves', defaultBindingMode
if (typeof option === 'string') {
return option.toLowerCase() === 'true';
}
return new Boolean(option);
return new Boolean(option).valueOf();
}
}) || _class) || _class) || _class) || _class) || _class) || _class) || _class) || _class) || _class) || _class) || _class) || _class) || _class) || _class) || _class) || _class) || _class) || _class) || _class) || _class);
2 changes: 1 addition & 1 deletion dist/es2015/dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ export let Dragula = class Dragula {
if (this._mirror) {
classes.rm(this.options.mirrorContainer, 'gu-unselectable');
touchy(document.documentElement, 'removeEventListener', 'mousemove', this.boundDrag);
Util.remove(this._mirror);
Util.getParent(this._mirror).removeChild(this._mirror);
this._mirror = null;
}
}
Expand Down
12 changes: 0 additions & 12 deletions dist/es2015/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,6 @@ let _Util = class _Util {
return immediate;
}

remove(node) {
if (node) {
if (!('remove' in Element.prototype)) {
if (node.parentNode) {
node.parentNode.removeChild(node);
}
} else {
node.remove();
}
}
}

getViewModel(element) {
if (element && element.au) {
if (element.au.controller.viewModel.currentViewModel) return element.au.controller.viewModel.currentViewModel;else return element.au.controller.viewModel;
Expand Down
3 changes: 2 additions & 1 deletion dist/system/dragula-and-drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ System.register(['aurelia-templating', 'aurelia-binding', 'aurelia-dependency-in
ignoreInputTextSelection: this._convertToBooleanIfRequired(this._getOption('ignoreInputTextSelection')),
mirrorContainer: this._getOption('mirrorContainer')
};

return result;
};

Expand All @@ -134,7 +135,7 @@ System.register(['aurelia-templating', 'aurelia-binding', 'aurelia-dependency-in
if (typeof option === 'string') {
return option.toLowerCase() === 'true';
}
return new Boolean(option);
return new Boolean(option).valueOf();
};

return DragulaAndDrop;
Expand Down
2 changes: 1 addition & 1 deletion dist/system/dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ System.register(['aurelia-dependency-injection', './touchy', './options', './uti
if (this._mirror) {
classes.rm(this.options.mirrorContainer, 'gu-unselectable');
touchy(document.documentElement, 'removeEventListener', 'mousemove', this.boundDrag);
Util.remove(this._mirror);
Util.getParent(this._mirror).removeChild(this._mirror);
this._mirror = null;
}
};
Expand Down
12 changes: 0 additions & 12 deletions dist/system/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,6 @@ System.register([], function (_export, _context) {
return immediate;
};

_Util.prototype.remove = function remove(node) {
if (node) {
if (!('remove' in Element.prototype)) {
if (node.parentNode) {
node.parentNode.removeChild(node);
}
} else {
node.remove();
}
}
};

_Util.prototype.getViewModel = function getViewModel(element) {
if (element && element.au) {
if (element.au.controller.viewModel.currentViewModel) return element.au.controller.viewModel.currentViewModel;else return element.au.controller.viewModel;
Expand Down
17 changes: 3 additions & 14 deletions dist/temp/aurelia-dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ var DragulaAndDrop = exports.DragulaAndDrop = (_dec = (0, _aureliaTemplating.bin
ignoreInputTextSelection: this._convertToBooleanIfRequired(this._getOption('ignoreInputTextSelection')),
mirrorContainer: this._getOption('mirrorContainer')
};

return result;
};

Expand All @@ -174,7 +175,7 @@ var DragulaAndDrop = exports.DragulaAndDrop = (_dec = (0, _aureliaTemplating.bin
if (typeof option === 'string') {
return option.toLowerCase() === 'true';
}
return new Boolean(option);
return new Boolean(option).valueOf();
};

return DragulaAndDrop;
Expand Down Expand Up @@ -619,7 +620,7 @@ var Dragula = exports.Dragula = function () {
if (this._mirror) {
classes.rm(this.options.mirrorContainer, 'gu-unselectable');
touchy(document.documentElement, 'removeEventListener', 'mousemove', this.boundDrag);
Util.remove(this._mirror);
Util.getParent(this._mirror).removeChild(this._mirror);
this._mirror = null;
}
};
Expand Down Expand Up @@ -955,18 +956,6 @@ var _Util = function () {
return immediate;
};

_Util.prototype.remove = function remove(node) {
if (node) {
if (!('remove' in Element.prototype)) {
if (node.parentNode) {
node.parentNode.removeChild(node);
}
} else {
node.remove();
}
}
};

_Util.prototype.getViewModel = function getViewModel(element) {
if (element && element.au) {
if (element.au.controller.viewModel.currentViewModel) return element.au.controller.viewModel.currentViewModel;else return element.au.controller.viewModel;
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.7",
"version": "1.1.0",
"description": "An aurelia compatible version of Dragula",
"keywords": [
"aurelia",
Expand Down

0 comments on commit 9f1f523

Please sign in to comment.