watcher: removed unnecessary injection

This commit is contained in:
dherrero 2017-10-05 09:53:40 +02:00
parent c4d6fd91db
commit 5b100e502c
1 changed files with 2 additions and 3 deletions

View File

@ -11,13 +11,12 @@ import isEqual from '../lib/equals';
* properties are provided.
*/
export default class Watcher extends Component {
constructor($element, $scope, $state, $transitions, $http, vnApp, $translate, $timeout) {
constructor($element, $scope, $state, $transitions, $http, vnApp, $translate) {
super($element);
this.$scope = $scope;
this.$state = $state;
this.$http = $http;
this.$translate = $translate;
this.$timeout = $timeout;
this.vnApp = vnApp;
this.state = null;
@ -195,7 +194,7 @@ export default class Watcher extends Component {
}
}
Watcher.$inject = ['$element', '$scope', '$state', '$transitions', '$http', 'vnApp', '$translate', '$timeout'];
Watcher.$inject = ['$element', '$scope', '$state', '$transitions', '$http', 'vnApp', '$translate'];
module.component('vnWatcher', {
template: require('./watcher.html'),