All JSHint trough webpack passes now.

This commit is contained in:
Gunther Brunner
2014-09-02 17:25:22 +09:00
parent 176bd002da
commit ce604d8211
21 changed files with 395 additions and 413 deletions

View File

@@ -1,16 +1,18 @@
module.exports = function angularDraggabillyDirective(DraggabillyService) {
return {
restrict: 'AE',
link: function (scope, element, attrs) {
var parsedAttrs = $parse(attrs.angularDraggabilly)()
if (typeof parsedAttrs !== 'object') {
parsedAttrs = {}
module.exports =
function angularDraggabillyDirective(DraggabillyService, $parse) {
return {
restrict: 'AE',
link: function (scope, element, attrs) {
var parsedAttrs = $parse(attrs.angularDraggabilly)()
if (typeof parsedAttrs !== 'object') {
parsedAttrs = {}
}
var options = angular.extend({
}, parsedAttrs)
/* jshint unused: false */
var draggie = new DraggabillyService(element[0], options)
}
var options = angular.extend({
}, parsedAttrs)
var draggie = new DraggabillyService(element[0], options)
}
}
}