2
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3
Code licensed under the BSD License:
4
http://developer.yahoo.com/yui/license.html
8
YUI.add('rls', function(Y) {
11
* Implentation for building the remote loader service url.
13
* @param what {Array} the requested modules
16
Y._rls = function(what) {
18
var config = Y.config,
22
m: 1, // required in the template
25
env: 1, // required in the template
27
'2in3v': config['2in3'],
30
filts: config.filters,
31
tests: 1 // required in the template
35
rls_base = config.rls_base || 'load?',
38
rls_tmpl = config.rls_tmpl || function() {
41
if (param in rls && rls[param]) {
42
s += param + '={' + param + '}&';
45
// console.log('rls_tmpl: ' + s);
53
rls.env = Y.Object.keys(YUI.Env.mods);
54
rls.tests = Y.Features.all('load', [Y]);
56
url = Y.Lang.sub(rls_base + rls_tmpl, rls);
59
config.rls_tmpl = rls_tmpl;
67
}, '3.2.0' ,{requires:['yui-base','get','features']});