mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-31 11:50:08 +01:00
Update events.js
This optimize previous commit. See [#4078](https://github.com/NodeBB/NodeBB/pull/4078). Added ```translator``` module instead of global ```translator```. This solves warnings editing posts with *composer*.
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
/* globals config, app, ajaxify, define, socket, templates, translator, utils */
|
||||
/* globals config, app, ajaxify, define, socket, templates, utils */
|
||||
|
||||
define('forum/topic/events', [
|
||||
'forum/topic/postTools',
|
||||
'forum/topic/threadTools',
|
||||
'forum/topic/posts',
|
||||
'components'
|
||||
], function(postTools, threadTools, posts, components) {
|
||||
'forum/topic/postTools',
|
||||
'forum/topic/threadTools',
|
||||
'forum/topic/posts',
|
||||
'components',
|
||||
'translator'
|
||||
], function(postTools, threadTools, posts, components, translator) {
|
||||
|
||||
var Events = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user