Changeset 7407

Show
Ignore:
Timestamp:
02/22/07 15:10:42 (21 months ago)
Author:
jburke
Message:

(merge from 0.4 branch) References #2366. Allow YahooService? to be used xdomain style by setting a local path for the yahoo.smd file.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/rpc/YahooService.js

    r7085 r7407  
    1414                                        "deployment of your application"); 
    1515        } 
    16         this.connect(dojo.uri.moduleUri("dojo.rpc", "yahoo.smd")); 
     16         
     17        if(djConfig["useXDomain"] && !djConfig["yahooServiceSmdUrl"]){ 
     18                dojo.debug("dojo.rpc.YahooService: When using cross-domain Dojo builds," 
     19                        + " please save yahoo.smd to your domain and set djConfig.yahooServiceSmdUrl" 
     20                        + " to the path on your domain to yahoo.smd"); 
     21        } 
     22 
     23        this.connect(djConfig["yahooServiceSmdUrl"] || dojo.uri.moduleUri("dojo.rpc", "yahoo.smd")); 
    1724        this.strictArgChecks = false; 
    1825}