Dec 02, 2010, 9:08 PM
[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:
Similar code with the same issue also appears just below this.
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]