From: Tim Düsterhus Date: Sun, 3 May 2015 21:14:33 +0000 (+0200) Subject: Move "use strict"; into the callback. It confuses the optimizer otherwise. X-Git-Tag: 3.0.0_Beta_1~2420 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=565853e8310b98196b1372e05b9581e98c9251f1;p=GitHub%2FWoltLab%2FWCF.git Move "use strict"; into the callback. It confuses the optimizer otherwise. --- 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