watcher: removed unnecessary injection
This commit is contained in:
parent
c4d6fd91db
commit
5b100e502c
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue