mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
All JSHint trough webpack passes now.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user