From 0c229b37455fc654759ecd6a0e9bc5f3868328b7 Mon Sep 17 00:00:00 2001 From: Lukas Oppermann Date: Fri, 7 Aug 2015 10:16:12 +0200 Subject: [PATCH] fixed last lenght bug 80+ and enable jsrc to fail build --- gulpfile.js | 2 +- src/html.sortable.src.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 931f761c..d202ff7c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -36,7 +36,7 @@ gulp.task('lint', function() { 'src/html.sortable.angular.js' ]) .pipe(jscs()) - .on('error', reportError) + // .on('error', reportError) .pipe(jshint()) .pipe(jshint.reporter('jshint-stylish')) .pipe(jshint.reporter('fail')) diff --git a/src/html.sortable.src.js b/src/html.sortable.src.js index 31041a33..01aa67b7 100644 --- a/src/html.sortable.src.js +++ b/src/html.sortable.src.js @@ -354,8 +354,7 @@ var sortable = function(selector, options) { }); // Handle dragover and dragenter events on draggable items - // TODO: REMOVE placeholder????? - items.add([this, placeholder]).on('dragover.h5s dragenter.h5s', function(e) { + items.add([this]).on('dragover.h5s dragenter.h5s', function(e) { if (!_listsConnected($sortable, $(dragging).parent())) { return; }