mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Remove "empty" template code (#16140)
Its only use seems to have been removed back in 2016 in a9ed15e11a
.
This commit is contained in:
parent
43da88db6c
commit
fbef828ab2
@ -1,5 +1,4 @@
|
|||||||
import DiscourseURL from "discourse/lib/url";
|
import DiscourseURL from "discourse/lib/url";
|
||||||
import Handlebars from "handlebars";
|
|
||||||
import { isDevelopment } from "discourse-common/config/environment";
|
import { isDevelopment } from "discourse-common/config/environment";
|
||||||
|
|
||||||
// Use the message bus for live reloading of components for faster development.
|
// Use the message bus for live reloading of components for faster development.
|
||||||
@ -51,10 +50,6 @@ export default {
|
|||||||
messageBus.subscribe(
|
messageBus.subscribe(
|
||||||
"/file-change",
|
"/file-change",
|
||||||
(data) => {
|
(data) => {
|
||||||
if (Handlebars.compile && !Ember.TEMPLATES.empty) {
|
|
||||||
// hbs notifications only happen in dev
|
|
||||||
Ember.TEMPLATES.empty = Handlebars.compile("<div></div>");
|
|
||||||
}
|
|
||||||
data.forEach((me) => {
|
data.forEach((me) => {
|
||||||
if (me === "refresh") {
|
if (me === "refresh") {
|
||||||
// Refresh if necessary
|
// Refresh if necessary
|
||||||
|
Loading…
Reference in New Issue
Block a user