Skip to content

Commit 92f5bff

Browse files
committed
Merge branch 'master' of git://github.com/rohitbind/angular-drag-scroll into rohitbind-master
* 'master' of git://github.com/rohitbind/angular-drag-scroll: Edited the readme for true and false value There was an error on the split function when .dragScrollExcludedClasses was empty so fixed it. kindly accept the pull request.
2 parents 5705c3f + 7581642 commit 92f5bff

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ The attribute value can be set to a scope varibale to easily toggle between enab
3232
* https://github.com/asvd/dragscroll
3333

3434
## License
35-
MIT: http://jellekralt.mit-license.org/
35+
MIT: http://jellekralt.mit-license.org/

src/ng-drag-scroll.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
var onDragStart = $parse($attributes.onDragStart);
2323
var onDragEnd = $parse($attributes.onDragEnd);
2424
var axis = $attributes.axis || false;
25-
var excludedClasses = $attributes.dragScrollExcludedClasses.split(',') || false;
25+
if($attributes.dragScrollExcludedClasses){
26+
var excludedClasses = $attributes.dragScrollExcludedClasses.split(',') || false;
27+
} else {
28+
var excludedClasses = false;
29+
}
2630
var startClientX;
2731
var startClientY;
2832
var lastClientX;

0 commit comments

Comments
 (0)