Skip to content

Commit

Permalink
Build for Release 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmalonenz committed Jun 3, 2016
1 parent d2f93a0 commit 6537687
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/amd/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ define(['exports'], function (exports) {
};

_Util.prototype.getViewModel = function getViewModel(element) {
if (element && element.au) {
if (element && element.au && element.au.controller) {
if (element.au.controller.viewModel.currentViewModel) return element.au.controller.viewModel.currentViewModel;else return element.au.controller.viewModel;
}
return null;
Expand Down
4 changes: 2 additions & 2 deletions dist/aurelia-dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ class _Util {
}

getViewModel(element) {
if (element && element.au) {
if (element && element.au && element.au.controller) {
if (element.au.controller.viewModel.currentViewModel)
return element.au.controller.viewModel.currentViewModel;
else
Expand All @@ -914,4 +914,4 @@ class _Util {
}

let Util = new _Util();
export { Util };
export { Util };
2 changes: 1 addition & 1 deletion dist/commonjs/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ var _Util = function () {
};

_Util.prototype.getViewModel = function getViewModel(element) {
if (element && element.au) {
if (element && element.au && element.au.controller) {
if (element.au.controller.viewModel.currentViewModel) return element.au.controller.viewModel.currentViewModel;else return element.au.controller.viewModel;
}
return null;
Expand Down
2 changes: 1 addition & 1 deletion dist/es2015/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ let _Util = class _Util {
}

getViewModel(element) {
if (element && element.au) {
if (element && element.au && element.au.controller) {
if (element.au.controller.viewModel.currentViewModel) return element.au.controller.viewModel.currentViewModel;else return element.au.controller.viewModel;
}
return null;
Expand Down
2 changes: 1 addition & 1 deletion dist/system/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ System.register([], function (_export, _context) {
};

_Util.prototype.getViewModel = function getViewModel(element) {
if (element && element.au) {
if (element && element.au && element.au.controller) {
if (element.au.controller.viewModel.currentViewModel) return element.au.controller.viewModel.currentViewModel;else return element.au.controller.viewModel;
}
return null;
Expand Down
2 changes: 1 addition & 1 deletion dist/temp/aurelia-dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ var _Util = function () {
};

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

0 comments on commit 6537687

Please sign in to comment.