Changeset 7406

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

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
  • branches/0.4/src/rpc/YahooService.js

    r7087 r7406  
    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}