mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:23:25 +02:00
Fix all res/ files with ESLint rules with 0 errors.
This commit is contained in:
@@ -5,7 +5,7 @@ module.exports = function angularPackeryDirective(PackeryService,
|
||||
|
||||
return {
|
||||
restrict: 'AE',
|
||||
link: function (scope, element, attrs) {
|
||||
link: function(scope, element, attrs) {
|
||||
var container = element[0]
|
||||
var parsedAttrs = $parse(attrs.angularPackery)()
|
||||
if (typeof parsedAttrs !== 'object') {
|
||||
@@ -24,10 +24,10 @@ module.exports = function angularPackeryDirective(PackeryService,
|
||||
pckry.bindResize()
|
||||
bindDraggable()
|
||||
|
||||
$timeout(function () {
|
||||
$timeout(function() {
|
||||
pckry.layout()
|
||||
}, 0)
|
||||
$timeout(function () {
|
||||
$timeout(function() {
|
||||
pckry.layout()
|
||||
}, 100)
|
||||
|
||||
@@ -56,7 +56,7 @@ module.exports = function angularPackeryDirective(PackeryService,
|
||||
|
||||
scope.$on('panelsResized', _.throttle(onPanelsResized, 300))
|
||||
|
||||
scope.$on('$destroy', function () {
|
||||
scope.$on('$destroy', function() {
|
||||
pckry.unbindResize()
|
||||
pckry.off('layoutComplete', onLayoutComplete)
|
||||
pckry.destroy()
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
describe('angularPackery', function () {
|
||||
describe('angularPackery', function() {
|
||||
|
||||
beforeEach(angular.mock.module(require('./').name));
|
||||
beforeEach(angular.mock.module(require('./').name))
|
||||
|
||||
var scope, compile;
|
||||
var scope, compile
|
||||
|
||||
beforeEach(inject(function ($rootScope, $compile) {
|
||||
scope = $rootScope.$new();
|
||||
compile = $compile;
|
||||
}));
|
||||
beforeEach(inject(function($rootScope, $compile) {
|
||||
scope = $rootScope.$new()
|
||||
compile = $compile
|
||||
}))
|
||||
|
||||
it('should ...', function () {
|
||||
it('should ...', function() {
|
||||
|
||||
/*
|
||||
To test your directive, you need to create some html that would use your directive,
|
||||
@@ -19,5 +19,5 @@ describe('angularPackery', function () {
|
||||
expect(element.text()).toBe('hello, world');
|
||||
*/
|
||||
|
||||
});
|
||||
});
|
||||
})
|
||||
})
|
||||
|
||||
@@ -8,7 +8,7 @@ var packery = require('packery/js/packery.js')
|
||||
module.exports = angular.module('stf.angular-packery', [
|
||||
require('stf/angular-draggabilly').name
|
||||
])
|
||||
.factory('PackeryService', function () {
|
||||
.factory('PackeryService', function() {
|
||||
return packery
|
||||
})
|
||||
.directive('angularPackery', require('./angular-packery-directive'))
|
||||
|
||||
Reference in New Issue
Block a user