Fixed function declaration in strict mode
authorAlexander Ebert <ebert@woltlab.com>
Mon, 4 Apr 2016 10:52:31 +0000 (12:52 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 4 Apr 2016 10:54:27 +0000 (12:54 +0200)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index a65cb04931b5f46cad553e0cc017c347391b2bf2..fe6091189b68926d2dbf549b0239bfee9342a1b2 100644 (file)
@@ -253,7 +253,7 @@ RedactorPlugins.wbbcode = function() {
                                $range.insertNode($smiley);
                                
                                // add spaces around the smiley that serve as padding
-                               function $isSpace(sibling) {
+                               var $isSpace = function(sibling) {
                                        if (sibling === null) return false;
                                        
                                        if ((sibling.nodeType === Node.ELEMENT_NODE && sibling.nodeName === 'SPAN') || sibling.nodeType === Node.TEXT_NODE) {