Fix all res/ files with ESLint rules with 0 errors.

This commit is contained in:
Gunther Brunner
2016-01-19 23:08:33 +09:00
parent 1006564ae7
commit a3f815c118
258 changed files with 1634 additions and 1634 deletions

View File

@@ -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()

View File

@@ -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');
*/
});
});
})
})

View File

@@ -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'))