From eedb0df4fb88c4fc1b64293d9bb5ab7405c4d5fa Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 16 Jun 2014 15:54:50 -0400 Subject: [PATCH] ES6: Just a couple of views --- .../views/{topic_admin_menu_view.js => topic-admin-menu.js.es6} | 2 +- .../discourse/views/{unknown_view.js => unknown.js.es6} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename app/assets/javascripts/discourse/views/{topic_admin_menu_view.js => topic-admin-menu.js.es6} (91%) rename app/assets/javascripts/discourse/views/{unknown_view.js => unknown.js.es6} (74%) diff --git a/app/assets/javascripts/discourse/views/topic_admin_menu_view.js b/app/assets/javascripts/discourse/views/topic-admin-menu.js.es6 similarity index 91% rename from app/assets/javascripts/discourse/views/topic_admin_menu_view.js rename to app/assets/javascripts/discourse/views/topic-admin-menu.js.es6 index 8864afbb4..34f68a50b 100644 --- a/app/assets/javascripts/discourse/views/topic_admin_menu_view.js +++ b/app/assets/javascripts/discourse/views/topic-admin-menu.js.es6 @@ -6,7 +6,7 @@ @namespace Discourse @module Discourse **/ -Discourse.TopicAdminMenuView = Discourse.View.extend({ +export default Discourse.View.extend({ willDestroyElement: function() { $('html').off('mouseup.discourse-topic-admin-menu'); diff --git a/app/assets/javascripts/discourse/views/unknown_view.js b/app/assets/javascripts/discourse/views/unknown.js.es6 similarity index 74% rename from app/assets/javascripts/discourse/views/unknown_view.js rename to app/assets/javascripts/discourse/views/unknown.js.es6 index 59206b085..7b974a19b 100644 --- a/app/assets/javascripts/discourse/views/unknown_view.js +++ b/app/assets/javascripts/discourse/views/unknown.js.es6 @@ -1,4 +1,4 @@ -Discourse.UnknownView = Em.View.extend({ +export default Em.View.extend({ classNameBindings: [':container'], render: function(buffer) {