diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-09-17 16:15:28 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-09-18 10:47:27 +0200 |
commit | 890ab0b59cdb3902f4869eabf8ca534814f1b3dd (patch) | |
tree | 0ed74726957e590f6506e378366ea15bf21bfcbd /server/sonar-web/src/main/js/apps/update-center/footer-view.js | |
parent | ce60ac8d2e137f33bb111668e54e78c195c73d79 (diff) | |
download | sonarqube-890ab0b59cdb3902f4869eabf8ca534814f1b3dd.tar.gz sonarqube-890ab0b59cdb3902f4869eabf8ca534814f1b3dd.zip |
migrate js apps to es2015 modules
Diffstat (limited to 'server/sonar-web/src/main/js/apps/update-center/footer-view.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/update-center/footer-view.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/server/sonar-web/src/main/js/apps/update-center/footer-view.js b/server/sonar-web/src/main/js/apps/update-center/footer-view.js index 2f83d509dc7..085dacf43c2 100644 --- a/server/sonar-web/src/main/js/apps/update-center/footer-view.js +++ b/server/sonar-web/src/main/js/apps/update-center/footer-view.js @@ -1,19 +1,19 @@ -define([ - './templates' -], function () { +import _ from 'underscore'; +import Marionette from 'backbone.marionette'; +import './templates'; - return Marionette.ItemView.extend({ - template: Templates['update-center-footer'], +export default Marionette.ItemView.extend({ + template: Templates['update-center-footer'], - collectionEvents: { - 'all': 'render' - }, - - serializeData: function () { - return _.extend(this._super(), { - total: this.collection.where({ _hidden: false }).length - }); - } - }); + collectionEvents: { + 'all': 'render' + }, + serializeData: function () { + return _.extend(this._super(), { + total: this.collection.where({ _hidden: false }).length + }); + } }); + + |