mirror of
https://github.com/discourse/discourse.git
synced 2025-02-13 19:52:46 +08:00
14 lines
428 B
JavaScript
14 lines
428 B
JavaScript
export default Discourse.GroupedView.extend({
|
|
templateName: 'embedded_post',
|
|
classNames: ['reply'],
|
|
|
|
_startTracking: function() {
|
|
var post = this.get('content');
|
|
Discourse.ScreenTrack.current().track(this.get('elementId'), post.get('post_number'));
|
|
}.on('didInsertElement'),
|
|
|
|
_stopTracking: function() {
|
|
Discourse.ScreenTrack.current().stopTracking(this.get('elementId'));
|
|
}.on('willDestroyElement')
|
|
});
|