1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest XenForo.js - remove TinyMCE old loader

Discussion in 'Closed Suggestions' started by cclaerhout, Feb 6, 2014.

  1. cclaerhout

    cclaerhout Well-Known Member

    Ref:
    Code:
        scriptLoader:
         {
           loadScript: function(url, success, failure)
           {
             if (XenForo._loadedScripts[url] === undefined)
             {
               if (/tiny_mce[a-zA-Z0-9_-]*\.js/.test(url))
               {
                 var preInit = {suffix: '', base: '', query: ''},
                   baseHref = XenForo.baseUrl();
    
                 if (/_(src|dev)\.js/g.test(url))
                 {
                   preInit.suffix = '_src';
                 }
    
                 if ((p = url.indexOf('?')) != -1)
                 {
                   preInit.query = url.substring(p + 1);
                 }
    
                 preInit.base = url.substring(0, url.lastIndexOf('/'));
    
                 if (baseHref && preInit.base.indexOf('://') == -1 && preInit.base.indexOf('/') !== 0)
                   preInit.base = baseHref + preInit.base;
               }
    
    It shouldn't be needed anymore, and I'm not sure how it was used without tinyMCEPreInit. May be a very old code then.
     
    Adam Howard and BamaStangGuy like this.

Share This Page