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

@@ -8,15 +8,15 @@ module.exports = function deviceContextMenuDirective($window) {
//},
transclude: true,
template: require('./device-context-menu.jade'),
link: function (scope) {
link: function(scope) {
//var device = scope.device()
//var control = scope.control()
scope.windowClose = function () {
scope.windowClose = function() {
$window.close()
}
scope.saveScreenShot = function () {
scope.control.screenshot().then(function (result) {
scope.saveScreenShot = function() {
scope.control.screenshot().then(function(result) {
location.href = result.body.href + '?download'
})
}

View File

@@ -1,15 +1,15 @@
describe('deviceContextMenu', function () {
describe('deviceContextMenu', function() {
beforeEach(angular.mock.module(require('./').name))
var scope, compile
beforeEach(inject(function ($rootScope, $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,