[FIXED] [1.0RC2] - Adapter paths are wrong

  1. #1

    [FIXED] [1.0RC2] - Adapter paths are wrong

    If you try to use an alternate adapter in 1.0 it will not find the file, the code is in ResourceManager.cs line 1323:

                        string ext = this.ScriptMode == ScriptMode.Debug ? "-debug.js" : ".js";
                        string path = "";
    
                        if (type == ResourceLocationType.CacheFly || type == ResourceLocationType.CacheFlyAndFile)
                        {
                            switch (this.ScriptAdapter)
                            {
                                case ScriptAdapter.Ext:
                                    path = "adapter/ext/ext-base";
                                    break;
                                case ScriptAdapter.jQuery:
                                    path = "adapter/jquery/ext-jquery-adapter.js";
                                    break;
                                case ScriptAdapter.Prototype:
                                    path = "adapter/prototype/ext-prototype-adapter.js";
                                    break;
                                case ScriptAdapter.YUI:
                                    path = "adapter/yui/ext-yui-adapter.js";
                                    break;
                            }
    Notice how all the others have '.js' appended to them, this causes them to fail when ext is appended. They should be extensionless like the base.

    Similar code with the same issue also appears just below this.
    Last edited by geoffrey.mcgill; Dec 06, 2010 at 3:21 PM. Reason: [FIXED]
  2. #2
    Hi,

    Thank you for pointing out the deffect. Fixed in SVN
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    A bug ticket for this was created, see

    https://extnet.lighthouseapp.com/pro...aths-are-wrong

    and promptly changed to resolved.
    Geoffrey McGill
    Founder & CEO

Similar Threads

  1. Replies: 2
    Last Post: Mar 22, 2011, 8:06 PM
  2. [FIXED] [1.0RC2] Datefield bug
    By caha76 in forum Bugs
    Replies: 2
    Last Post: Dec 03, 2010, 8:41 AM
  3. Replies: 1
    Last Post: Nov 26, 2010, 3:30 PM
  4. Replies: 8
    Last Post: Dec 10, 2009, 1:20 PM
  5. jQuery 1.3 and Ext adapter with Coolite
    By anup in forum 1.x Help
    Replies: 0
    Last Post: Jan 15, 2009, 11:18 AM

Posting Permissions