Cross Reference: meta.js
xref
: /
yui3
/
src
/
loader
/
js
/
meta.js
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
meta.js revision 60f1a165ceb2a6e449c31938fc390b2e11fa13f6
246
N/A
/**
246
N/A
* The YUI loader core
246
N/A
* @module loader
246
N/A
* @submodule loader-base
246
N/A
*/
246
N/A
246
N/A
if
(!
YUI
.
Env
[Y.
version
]) {
246
N/A
246
N/A
(
function
() {
246
N/A
var
VERSION
= Y.
version
,
246
N/A
BUILD
=
'/build/'
,
246
N/A
ROOT
=
VERSION
+
BUILD
,
246
N/A
CDN_BASE
= Y.
Env
.
base
,
246
N/A
GALLERY_VERSION
=
'@GALLERY@'
,
246
N/A
TNT
=
'2in3'
,
246
N/A
TNT_VERSION
=
'@TNT@'
,
246
N/A
YUI2_VERSION
=
'@YUI2@'
,
246
N/A
COMBO_BASE
=
CDN_BASE
+
'combo?'
,
246
N/A
META
= {
version
:
VERSION
,
246
N/A
root
:
ROOT
,
246
N/A
base
: Y.
Env
.
base
,
246
N/A
comboBase
:
COMBO_BASE
,
246
N/A
skin
: {
defaultSkin
:
'sam'
,
246
N/A
base
:
'
assets
/
skins
/'
,
246
N/A
path
:
'skin.css'
,
246
N/A
after
: [
'cssreset'
,
246
N/A
'cssfonts'
,
246
N/A
'cssgrids'
,
246
N/A
'cssbase'
,
246
N/A
'cssreset-context'
,
246
N/A
'cssfonts-context'
]},
246
N/A
groups
: {},
246
N/A
patterns
: {} },
246
N/A
groups
=
META
.
groups
,
246
N/A
yui2Update
=
function
(
tnt
,
yui2
) {
246
N/A
var
root
=
TNT
+
'.'
+
246
N/A
(
tnt
||
TNT_VERSION
) +
'/'
+
246
N/A
(
yui2
||
YUI2_VERSION
) +
BUILD
;
246
N/A
groups
.
yui2
.
base
=
CDN_BASE
+
root
;
246
N/A
groups
.
yui2
.
root
=
root
;
},
galleryUpdate
=
function
(
tag
) {
var
root
= (
tag
||
GALLERY_VERSION
) +
BUILD
;
groups
.
gallery
.
base
=
CDN_BASE
+
root
;
groups
.
gallery
.
root
=
root
;
};
groups
[
VERSION
] = {};
groups
.
gallery
= {
ext
:
false
,
combine
:
true
,
comboBase
:
COMBO_BASE
,
update
:
galleryUpdate
,
patterns
: {
'gallery-'
: { },
'gallerycss-'
: {
type
:
'css'
} }
};
groups
.
yui2
= {
combine
:
true
,
ext
:
false
,
comboBase
:
COMBO_BASE
,
update
:
yui2Update
,
patterns
: {
'yui2-'
: {
configFn
:
function
(
me
) {
if
(/-
skin
|
reset
|
fonts
|
grids
|
base
/.
test
(
me
.
name
)) {
me
.
type
=
'css'
;
me
.
path
=
me
.
path
.
replace
(/\.
js
/,
'.css'
);
// this makes skins in builds earlier than
// 2.6.0 work as long as combine is false
me
.
path
=
me
.
path
.
replace
(/\/
yui2
-
skin
/,
'/
assets
/
skins
/
sam
/
yui2-skin
'
);
}
}
}
}
};
galleryUpdate
();
yui2Update
();
YUI
.
Env
[
VERSION
] =
META
;
}());
}