mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Fix all res/ files with ESLint rules with 0 errors.
This commit is contained in:
@@ -7,12 +7,12 @@ module.exports = angular.module('stf/socket/socket-state', [
|
||||
])
|
||||
.directive('socketState', require('./socket-state-directive'))
|
||||
.config([
|
||||
'$provide', function ($provide) {
|
||||
'$provide', function($provide) {
|
||||
return $provide.decorator('$rootScope', [
|
||||
'$delegate', function ($delegate) {
|
||||
$delegate.safeApply = function (fn) {
|
||||
'$delegate', function($delegate) {
|
||||
$delegate.safeApply = function(fn) {
|
||||
var phase = $delegate.$$phase
|
||||
if (phase === "$apply" || phase === "$digest") {
|
||||
if (phase === '$apply' || phase === '$digest') {
|
||||
if (fn && typeof fn === 'function') {
|
||||
fn()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user