From 565853e8310b98196b1372e05b9581e98c9251f1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 3 May 2015 23:14:33 +0200 Subject: [PATCH] Move "use strict"; into the callback. It confuses the optimizer otherwise. --- wcfsetup/install/files/js/WoltLab/WCF/CallbackList.js | 6 +++--- wcfsetup/install/files/js/WoltLab/WCF/Core.js | 4 ++-- wcfsetup/install/files/js/WoltLab/WCF/DOM/Traverse.js | 6 +++--- wcfsetup/install/files/js/WoltLab/WCF/DOM/Util.js | 4 ++-- wcfsetup/install/files/js/WoltLab/WCF/Date/Time/Relative.js | 4 ++-- wcfsetup/install/files/js/WoltLab/WCF/Dictionary.js | 6 +++--- wcfsetup/install/files/js/WoltLab/WCF/Event/Handler.js | 6 +++--- wcfsetup/install/files/js/WoltLab/WCF/UI/Alignment.js | 4 ++-- wcfsetup/install/files/js/WoltLab/WCF/UI/Dropdown/Simple.js | 6 +++--- wcfsetup/install/files/js/WoltLab/WCF/UI/Mobile.js | 4 ++-- wcfsetup/install/files/js/WoltLab/WCF/UI/TabMenu.js | 4 ++-- wcfsetup/install/files/js/WoltLab/WCF/UI/TabMenu/Simple.js | 4 ++-- 12 files changed, 29 insertions(+), 29 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLab/WCF/CallbackList.js b/wcfsetup/install/files/js/WoltLab/WCF/CallbackList.js index 3b2aaf14bb..50904720ec 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/CallbackList.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/CallbackList.js @@ -1,5 +1,3 @@ -"use strict"; - /** * Simple API to store and invoke multiple callbacks per identifier. * @@ -9,6 +7,8 @@ * @module WoltLab/WCF/CallbackList */ define(['Dictionary'], function(Dictionary) { + "use strict"; + /** * @constructor */ @@ -62,4 +62,4 @@ define(['Dictionary'], function(Dictionary) { }; return CallbackList; -}); \ No newline at end of file +}); diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Core.js b/wcfsetup/install/files/js/WoltLab/WCF/Core.js index 892e822b2a..78e9ffab4b 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Core.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Core.js @@ -1,5 +1,3 @@ -"use strict"; - /** * Provides the basic core functionality. * @@ -9,6 +7,8 @@ * @module WoltLab/WCF/Core */ define(['jQuery'], function($) { + "use strict"; + /** * @constructor */ diff --git a/wcfsetup/install/files/js/WoltLab/WCF/DOM/Traverse.js b/wcfsetup/install/files/js/WoltLab/WCF/DOM/Traverse.js index ff180ada0f..2b73ea95be 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/DOM/Traverse.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/DOM/Traverse.js @@ -1,5 +1,3 @@ -"use strict"; - /** * Provides helper functions to traverse the DOM. * @@ -9,6 +7,8 @@ * @module WoltLab/WCF/DOM/Traverse */ define(['DOM/Util'], function(DOMUtil) { + "use strict"; + /** @const */ var NONE = 0; /** @const */ var SELECTOR = 1; /** @const */ var CLASS_NAME = 2; @@ -171,4 +171,4 @@ define(['DOM/Util'], function(DOMUtil) { }; return new DOMTraverse(); -}); \ No newline at end of file +}); diff --git a/wcfsetup/install/files/js/WoltLab/WCF/DOM/Util.js b/wcfsetup/install/files/js/WoltLab/WCF/DOM/Util.js index 18d3a898ce..12f5783516 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/DOM/Util.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/DOM/Util.js @@ -1,5 +1,3 @@ -"use strict"; - /** * Provides helper functions to work with DOM nodes. * @@ -9,6 +7,8 @@ * @module WoltLab/WCF/DOM/Util */ define(function() { + "use strict"; + var _matchesSelectorFunction = ''; var _possibleFunctions = ['matches', 'webkitMatchesSelector', 'mozMatchesSelector', 'msMatchesSelector']; for (var i = 0; i < 4; i++) { diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Date/Time/Relative.js b/wcfsetup/install/files/js/WoltLab/WCF/Date/Time/Relative.js index 2c1d76439b..e136c69b91 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Date/Time/Relative.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Date/Time/Relative.js @@ -1,5 +1,3 @@ -"use strict"; - /** * Transforms