Fix issues due to enforced strict JS camel case naming
authorMatthias Schmidt <gravatronics@live.com>
Sun, 12 Jul 2015 14:26:41 +0000 (16:26 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 12 Jul 2015 14:26:41 +0000 (16:26 +0200)
wcfsetup/install/files/js/WCF.js

index c9a7fcd90450e96dbfad3c219389342f778ee592..43330d47d636bc249584c3dc8bfd025bbd6bbe8a 100755 (executable)
@@ -410,7 +410,7 @@ $.fn.extend({
         * @return      string
         */
        wcfIdentify: function() {
-               return window.bc_wcfDOMUtil.identify(this[0]);
+               return window.bc_wcfDomUtil.identify(this[0]);
        },
        
        /**
@@ -652,7 +652,7 @@ $.extend(WCF, {
         * @return      string
         */
        getRandomID: function() {
-               return window.bc_wcfDOMUtil.getUniqueId();
+               return window.bc_wcfDomUtil.getUniqueId();
        },
        
        /**
@@ -3974,16 +3974,16 @@ WCF.CloseOverlayHandler = {
 };
 
 /**
- * @deprecated Use WoltLab/WCF/DOM/Change/Listener
+ * @deprecated Use WoltLab/WCF/Dom/Change/Listener
  */
 WCF.DOMNodeInsertedHandler = {
        addCallback: function(identifier, callback) {
-               require(['WoltLab/WCF/DOM/Change/Listener'], function (ChangeListener) {
+               require(['WoltLab/WCF/Dom/Change/Listener'], function (ChangeListener) {
                        ChangeListener.add('__legacy__', callback);
                });
        },
        _executeCallbacks: function() {
-               require(['WoltLab/WCF/DOM/Change/Listener'], function (ChangeListener) {
+               require(['WoltLab/WCF/Dom/Change/Listener'], function (ChangeListener) {
                        ChangeListener.trigger();
                });
        },
@@ -7907,7 +7907,7 @@ jQuery.fn.extend({
        wcfDialog: function(method) {
                var args = arguments;
                
-               require(['DOM/Util', 'UI/Dialog'], (function(DOMUtil, UIDialog) {
+               require(['Dom/Util', 'Ui/Dialog'], (function(DOMUtil, UIDialog) {
                        var id = DOMUtil.identify(this[0]);
                        
                        if (method === 'close') {
@@ -8192,7 +8192,7 @@ jQuery.fn.extend({
        wcfTabs: function(method) {
                var element = this[0], parameters = Array.prototype.slice.call(arguments, 1);
                
-               require(['DOM/Util', 'WoltLab/WCF/UI/TabMenu'], function(DOMUtil, TabMenu) {
+               require(['Dom/Util', 'WoltLab/WCF/Ui/TabMenu'], function(DOMUtil, TabMenu) {
                        var container = TabMenu.getTabMenu(DOMUtil.identify(element));
                        if (container !== null) {
                                container[method].apply(container, parameters);