http://meta.discourse.org/t/is-it-better-for-discourse-to-use-javascript-or-coffeescript/3153
14 lines
393 B
JavaScript
14 lines
393 B
JavaScript
(function() {
|
|
|
|
window.Discourse.EmbeddedPostView = Ember.View.extend({
|
|
templateName: 'embedded_post',
|
|
classNames: ['reply'],
|
|
didInsertElement: function() {
|
|
var postView;
|
|
postView = this.get('postView') || this.get('parentView.postView');
|
|
return postView.get('screenTrack').track(this.get('elementId'), this.get('post.post_number'));
|
|
}
|
|
});
|
|
|
|
}).call(this);
|