ES6: A couple of views

This commit is contained in:
Robin Ward 2014-06-20 13:28:57 -04:00
parent f297517055
commit 3ac688d763
3 changed files with 4 additions and 7 deletions

View file

@ -6,9 +6,7 @@
<div><input type='text' /></div>
{{#each shareLinks}}
{{view Discourse.ShareLinkView contentBinding="this"}}
{{/each}}
{{each shareLinks itemView='share-link'}}
<div class='link'>
<a href='#' {{action close}} title='{{i18n share.close}}'><i class="fa fa-times-circle"></i></a>

View file

@ -8,7 +8,7 @@
var clickOutsideEventName = "mousedown.outside-poster-expansion";
Discourse.PosterExpansionView = Discourse.View.extend({
export default Discourse.View.extend({
elementId: 'poster-expansion',
classNameBindings: ['controller.visible::hidden', 'controller.showBadges'],
@ -29,7 +29,6 @@ Discourse.PosterExpansionView = Discourse.View.extend({
}
}
});
}.observes('controller.model'),
didInsertElement: function() {

View file

@ -7,7 +7,7 @@
@namespace Discourse
@module Discourse
**/
Discourse.ShareLinkView = Discourse.View.extend({
export default Ember.View.extend({
templateName: 'share_link',
tagName: 'div',
classNameBindings: [':social-link']