mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
refactored translator system to be a require.js module, and not a global
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
/*globals translator*/
|
||||
|
||||
|
||||
if ('undefined' !== typeof window) {
|
||||
|
||||
(function ($, undefined) {
|
||||
var translator;
|
||||
require(['translator'], function(_translator) {
|
||||
translator = _translator;
|
||||
});
|
||||
|
||||
$.fn.getCursorPosition = function() {
|
||||
var el = $(this).get(0);
|
||||
var pos = 0;
|
||||
|
||||
Reference in New Issue
Block a user