fix missing underscore imports

codeql
Yeiniel Suárez Sosa 5 years ago committed by Yeiniel Suarez Sosa
parent 9abeea6a78
commit 6f808bd4a6
No known key found for this signature in database
GPG Key ID: E2CFACE611B42B6C
  1. 1
      .jshintrc
  2. 2
      src/js/filters.js
  3. 1
      src/js/glowingbear.js
  4. 5
      src/js/handlers.js
  5. 2
      src/js/models.js
  6. 3
      src/js/utils.js
  7. 5
      src/js/websockets.js
  8. 7
      src/js/whenscrolled-directive.js

@ -6,7 +6,6 @@
"globals": { "globals": {
"angular": false, "angular": false,
"weeChat": false, "weeChat": false,
"_": false,
"Notification": false, "Notification": false,
"Favico": false, "Favico": false,
"linkifyStr": false, "linkifyStr": false,

@ -1,5 +1,7 @@
'use strict'; 'use strict';
import * as _ from "underscore";
var weechat = angular.module('weechat'); var weechat = angular.module('weechat');
weechat.filter('toArray', function () { weechat.filter('toArray', function () {

@ -1,6 +1,7 @@
'use strict'; 'use strict';
import * as Favico from "favico.js"; import * as Favico from "favico.js";
import * as _ from "underscore";
import { connectionFactory } from './connection'; import { connectionFactory } from './connection';

@ -1,6 +1,8 @@
(function() {
'use strict'; 'use strict';
import * as _ from "underscore";
var weechat = angular.module('weechat'); var weechat = angular.module('weechat');
weechat.factory('handlers', ['$rootScope', '$log', 'models', 'plugins', 'notifications', 'bufferResume', function($rootScope, $log, models, plugins, notifications, bufferResume) { weechat.factory('handlers', ['$rootScope', '$log', 'models', 'plugins', 'notifications', 'bufferResume', function($rootScope, $log, models, plugins, notifications, bufferResume) {
@ -540,4 +542,3 @@ weechat.factory('handlers', ['$rootScope', '$log', 'models', 'plugins', 'notific
}; };
}]); }]);
})();

@ -4,6 +4,8 @@
*/ */
'use strict'; 'use strict';
import * as _ from "underscore";
import * as weeChat from './weechat'; import * as weeChat from './weechat';
var models = angular.module('weechatModels', []); var models = angular.module('weechatModels', []);

@ -1,3 +1,6 @@
import * as _ from "underscore";
var weechat = angular.module('weechat'); var weechat = angular.module('weechat');
weechat.factory('utils', function() { weechat.factory('utils', function() {

@ -1,6 +1,8 @@
(function() {
'use strict'; 'use strict';
import * as _ from "underscore";
var websockets = angular.module('ngWebsockets', []); var websockets = angular.module('ngWebsockets', []);
websockets.factory('ngWebsockets', websockets.factory('ngWebsockets',
@ -147,4 +149,3 @@ function($rootScope, $q) {
}; };
}]); }]);
})();

@ -1,7 +1,10 @@
(function() {
'use strict'; 'use strict';
import * as _ from "underscore";
var weechat = angular.module('weechat'); var weechat = angular.module('weechat');
weechat.directive('whenScrolled', function() { weechat.directive('whenScrolled', function() {
return function(scope, elm, attr) { return function(scope, elm, attr) {
var raw = elm[0]; var raw = elm[0];
@ -17,5 +20,3 @@ weechat.directive('whenScrolled', function() {
}); });
}; };
}); });
})();

Loading…
Cancel
Save