mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-25 00:29:30 -05:00
12 lines
286 B
JavaScript
12 lines
286 B
JavaScript
import { on, observes } from 'ember-addons/ember-computed-decorators';
|
|
import highlightSyntax from 'discourse/lib/highlight-syntax';
|
|
|
|
export default Ember.Component.extend({
|
|
|
|
@on('didInsertElement')
|
|
@observes('code')
|
|
_refresh: function() {
|
|
highlightSyntax(this.$());
|
|
}
|
|
|
|
});
|