yui-init.js.html revision ace5e2555c33a0ceddef42649f6f38fa006707cc
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass<html>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass<head>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <title>API: yui yui-init.js (YUI Library)</title>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <link rel="stylesheet" type="text/css" href="assets/api.css">
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <script type="text/javascript" src="assets/api-js"></script>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <script type="text/javascript" src="assets/ac-js"></script>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass</head>
5aab19b8b78189ce79cf89283f2d505566d4e6a8Dav Glass
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass<body id="yahoo-com">
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass<div id="doc3" class="yui-t2">
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass
d0199bcbfc68b65683c19c4e3e0c38e238142e7eDav Glass <div id="hd">
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <a href="http://developer.yahoo.com/yui/"><h1>Yahoo! UI Library</h1></a>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <h3>yui&nbsp; <span class="subtitle">3.00PR1</span></h3>
d0199bcbfc68b65683c19c4e3e0c38e238142e7eDav Glass <p>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <a href="/index.html">Yahoo! UI Library</a>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass &gt; <a href="/module_yui.html">yui</a>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass &gt; yui-init.js (source view)
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass </p>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass </div>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <div id="bd">
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <div id="yui-main">
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <div class="yui-b">
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <form name="yui-classopts-form">
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <span id="classopts"><input type="checkbox" name="showprivate" id="showprivate" /> Show Private</span>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <span id="classopts"><input type="checkbox" name="showprotected" id="showprotected" /> Show Protected</span>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <span id="classopts"><input type="checkbox" name="showdeprecated" id="showdeprecated" /> Show Deprecated</span>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass </form>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <div id="srcout">
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <style>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass #doc3 #classopts { display:none; }
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass </style>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass<div class="highlight" ><pre><span class="o">(</span><span class="k">function</span><span class="o">()</span> <span class="o">{</span>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <span class="k">var</span> <span class="nx">min</span> <span class="o">=</span> <span class="o">[</span><span class="s1">&#39;log&#39;</span><span class="o">,</span> <span class="s1">&#39;lang&#39;</span><span class="o">,</span> <span class="s1">&#39;array&#39;</span><span class="o">,</span> <span class="s1">&#39;core&#39;</span><span class="o">],</span> <span class="nx">core</span><span class="o">,</span>
d0199bcbfc68b65683c19c4e3e0c38e238142e7eDav Glass
d0199bcbfc68b65683c19c4e3e0c38e238142e7eDav Glass <span class="nx">M</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">Y</span><span class="o">)</span> <span class="o">{</span>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <span class="k">var</span> <span class="nx">C</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">config</span><span class="o">;</span>
d0199bcbfc68b65683c19c4e3e0c38e238142e7eDav Glass
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <span class="c">// apply the minimal required functionality</span>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass<span class="c"></span> <span class="nx">Y</span><span class="o">.</span><span class="nx">use</span><span class="o">.</span><span class="nx">apply</span><span class="o">(</span><span class="nx">Y</span><span class="o">,</span> <span class="nx">min</span><span class="o">);</span>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <span class="nx">Y</span><span class="o">.</span><span class="nx">log</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">id</span> <span class="o">+</span> <span class="s1">&#39; setup completing) .&#39;</span><span class="o">);</span>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <span class="k">if</span> <span class="o">(</span><span class="nx">C</span><span class="o">.</span><span class="nx">core</span><span class="o">)</span> <span class="o">{</span>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass
d0199bcbfc68b65683c19c4e3e0c38e238142e7eDav Glass <span class="nx">core</span> <span class="o">=</span> <span class="nx">C</span><span class="o">.</span><span class="nx">core</span><span class="o">;</span>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <span class="o">}</span> <span class="k">else</span> <span class="o">{</span>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass
<span class="nx">core</span> <span class="o">=</span> <span class="o">[</span><span class="s2">&quot;object&quot;</span><span class="o">,</span> <span class="s2">&quot;ua&quot;</span><span class="o">,</span> <span class="s2">&quot;later&quot;</span><span class="o">];</span>
<span class="nx">core</span><span class="o">.</span><span class="nx">push</span><span class="o">(</span>
<span class="s2">&quot;aop&quot;</span><span class="o">,</span>
<span class="s2">&quot;event-custom&quot;</span><span class="o">,</span>
<span class="s2">&quot;event-target&quot;</span><span class="o">,</span>
<span class="s2">&quot;event-ready&quot;</span><span class="o">,</span>
<span class="s2">&quot;event-dom&quot;</span><span class="o">,</span>
<span class="s2">&quot;event-facade&quot;</span><span class="o">,</span>
<span class="s2">&quot;dom&quot;</span><span class="o">,</span>
<span class="s2">&quot;node&quot;</span><span class="o">,</span>
<span class="s2">&quot;io&quot;</span><span class="o">,</span>
<span class="s2">&quot;get&quot;</span><span class="o">);</span>
<span class="c">// &quot;loader&quot;</span>
<span class="c"></span>
<span class="o">}</span>
<span class="nx">Y</span><span class="o">.</span><span class="nx">use</span><span class="o">.</span><span class="nx">apply</span><span class="o">(</span><span class="nx">Y</span><span class="o">,</span> <span class="nx">core</span><span class="o">);</span>
<span class="o">};</span>
<span class="nx">YUI</span><span class="o">.</span><span class="nx">add</span><span class="o">(</span><span class="s2">&quot;yui&quot;</span><span class="o">,</span> <span class="nx">M</span><span class="o">,</span> <span class="s2">&quot;@VERSION@&quot;</span><span class="o">);</span>
<span class="c">// {</span>
<span class="c"></span> <span class="c">// the following will be bound automatically when this code is loaded</span>
<span class="c"></span> <span class="c">// use: core</span>
<span class="c"></span> <span class="c">// });</span>
<span class="c"></span>
<span class="o">})();</span>
</pre></div>
</div>
</div>
</div>
<div class="yui-b">
<div class="nav">
<div class="module">
<h4>Modules</h4>
<ul class="content">
<li class=""><a href="module_animation.html">animation</a></li>
<li class=""><a href="module_attribute.html">attribute</a></li>
<li class=""><a href="module_base.html">base</a></li>
<li class=""><a href="module_event.html">event</a></li>
<li class=""><a href="module_io.html">io</a></li>
<li class=""><a href="module_JSON.html">JSON</a></li>
<li class=""><a href="module_node.html">node</a></li>
<li class=""><a href="module_node-region.html">node-region</a></li>
<li class=""><a href="module_nodeclassname.html">nodeclassname</a></li>
<li class=""><a href="module_nodeextras.html">nodeextras</a></li>
<li class="selected"><a href="module_yui.html">yui</a></li>
</ul>
</div>
<div class="module">
<h4>Classes</h4>
<ul class="content">
<li class=""><a href="Array.html">Array</a></li>
<li class=""><a href="Get.html">Get</a></li>
<li class=""><a href="Lang.html">Lang</a></li>
<li class=""><a href="Object.html">Object</a></li>
<li class=""><a href="UA.html">UA</a></li>
<li class=""><a href="YUI.html">YUI</a></li>
</ul>
</div>
<div class="module">
<h4>Files</h4>
<ul class="content">
<li class=""><a href="yui-array.js.html">yui-array.js</a></li>
<li class=""><a href="yui-core.js.html">yui-core.js</a></li>
<li class=""><a href="yui-dump.js.html">yui-dump.js</a></li>
<li class=""><a href="yui-get.js.html">yui-get.js</a></li>
<li class="selected"><a href="yui-init.js.html">yui-init.js</a></li>
<li class=""><a href="yui-lang.js.html">yui-lang.js</a></li>
<li class=""><a href="yui-later.js.html">yui-later.js</a></li>
<li class=""><a href="yui-log.js.html">yui-log.js</a></li>
<li class=""><a href="yui-object.js.html">yui-object.js</a></li>
<li class=""><a href="yui-ua.js.html">yui-ua.js</a></li>
<li class=""><a href="yui.js.html">yui.js</a></li>
</ul>
</div>
</div>
</div>
</div>
<div id="ft">
<hr />
Copyright &copy; 2008 Yahoo! Inc. All rights reserved.
</div>
</div>
</body>
</html>