/**
* Initialize WCF namespace
*/
-window.WCF = {};
+// non strict equals by intent
+if (window.WCF == null) window.WCF = { };
/**
* Extends jQuery with additional methods.
}
});
-/**
- * @deprecated Use WoltLab/WCF/Language
- */
-WCF.Language = {
- add: function(key, value) {
- require(['WoltLab/WCF/Language'], function(Language) {
- Language.add(key, value);
- });
- },
- addObject: function(object) {
- require(['WoltLab/WCF/Language'], function(Language) {
- Language.addObject(object);
- });
- },
- get: function(key, parameters) {
- // This cannot be sanely provided as a compatibility wrapper.
- throw new Error('Call to deprecated WCF.Language.get("' + key + '")');
- }
-};
+// non strict equals by intent
+if (window.WCF.Language == null) {
+ /**
+ * @deprecated Use WoltLab/WCF/Language
+ */
+ WCF.Language = {
+ add: function(key, value) {
+ require(['WoltLab/WCF/Language'], function(Language) {
+ Language.add(key, value);
+ });
+ },
+ addObject: function(object) {
+ require(['WoltLab/WCF/Language'], function(Language) {
+ Language.addObject(object);
+ });
+ },
+ get: function(key, parameters) {
+ // This cannot be sanely provided as a compatibility wrapper.
+ throw new Error('Call to deprecated WCF.Language.get("' + key + '")');
+ }
+ };
+}
/**
* Handles multiple language input fields.
// perfectScrollbar does not need to be bound anywhere, it just has to be loaded for WCF.js
window.Favico = favico;
window.enquire = enquire;
+ // non strict equals by intent
+ if (window.WCF == null) window.WCF = { };
+ if (window.WCF.Language == null) window.WCF.Language = { };
window.WCF.Language.get = Language.get;
window.WCF.Language.add = Language.add;
window.WCF.Language.addObject = Language.addObject;