Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuch committed May 24, 2015
1 parent b8395c6 commit e6d548f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 39 deletions.
57 changes: 21 additions & 36 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
var srcFiles = [
'src/core.js',
'src/directives/dndDraggable.js',
'src/directives/dndDroppable.js',
'src/directives/dndRotatable.js',
'src/directives/dndResizable.js',
'src/directives/dndSortable.js',
'src/directives/dndSelectable.js',
'src/directives/dndRect.js',
'src/directives/dndModel.js',
'src/directives/dndLassoArea.js',
'src/directives/dndFittext.js',
'src/directives/dndKeyModel.js',
'src/directives/dndContainment.js',
'src/services/dndKey.js',
'src/services/dndLasso.js',
'src/services/EventEmitter.js'
];

module.exports = function (grunt) {
grunt.initConfig({
concat: {
options: {
separator: ';\n\n',
},
dist: {
src: [
'src/core.js',
'src/directives/dndDraggable.js',
'src/directives/dndDroppable.js',
'src/directives/dndRotatable.js',
'src/directives/dndResizable.js',
'src/directives/dndSortable.js',
'src/directives/dndSelectable.js',
'src/directives/dndRect.js',
'src/directives/dndModel.js',
'src/directives/dndLassoArea.js',
'src/directives/dndFittext.js',
'src/directives/dndKeyModel.js',
'src/directives/dndContainment.js',
'src/services/dndKey.js',
'src/services/dndLasso.js',
'src/services/EventEmitter.js'
],
src: srcFiles,
dest: 'dist/angular-dnd.js',
},
},
Expand All @@ -45,24 +47,7 @@ module.exports = function (grunt) {
}
},
watch: {
files: [
'src/core.js',
'src/directives/dndDraggable.js',
'src/directives/dndDroppable.js',
'src/directives/dndRotatable.js',
'src/directives/dndResizable.js',
'src/directives/dndSortable.js',
'src/directives/dndSelectable.js',
'src/directives/dndRect.js',
'src/directives/dndModel.js',
'src/directives/dndLassoArea.js',
'src/directives/dndFittext.js',
'src/directives/dndKeyModel.js',
'src/directives/dndContainer.js',
'src/services/dndKey.js',
'src/services/dndLasso.js',
'src/services/EventEmitter.js'
],
files: srcFiles,
tasks: [
"concat",
"wrap",
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-dnd.js
Original file line number Diff line number Diff line change
Expand Up @@ -3129,7 +3129,7 @@ module.directive('dndContainment', ['$parse', function($parse){
this.get = function () {
var selector = getterSelector($scope);

return selector ? $element.dndClosest().eq(0) : $element.parent();
return selector ? $element.dndClosest(selector).eq(0) : $element.parent();
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/angular-dnd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/directives/dndContainment.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.directive('dndContainment', ['$parse', function($parse){
this.get = function () {
var selector = getterSelector($scope);

return selector ? $element.dndClosest().eq(0) : $element.parent();
return selector ? $element.dndClosest(selector).eq(0) : $element.parent();
}
}

Expand Down

0 comments on commit e6d548f

Please sign in to comment.