diff options
Diffstat (limited to 'server/sonar-web/src/main/js/components/navigator/models/facet.js')
-rw-r--r-- | server/sonar-web/src/main/js/components/navigator/models/facet.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/server/sonar-web/src/main/js/components/navigator/models/facet.js b/server/sonar-web/src/main/js/components/navigator/models/facet.js index b154fb58c7f..ab7486a9a10 100644 --- a/server/sonar-web/src/main/js/components/navigator/models/facet.js +++ b/server/sonar-web/src/main/js/components/navigator/models/facet.js @@ -1,20 +1,20 @@ -define(function () { +import Backbone from 'backbone'; - return Backbone.Model.extend({ - idAttribute: 'property', +export default Backbone.Model.extend({ + idAttribute: 'property', - defaults: { - enabled: false - }, + defaults: { + enabled: false + }, - getValues: function () { - return this.get('values') || []; - }, - - toggle: function () { - var enabled = this.get('enabled'); - this.set({ enabled: !enabled }); - } - }); + getValues: function () { + return this.get('values') || []; + }, + toggle: function () { + var enabled = this.get('enabled'); + this.set({ enabled: !enabled }); + } }); + + |