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 <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 <a href="http://developer.yahoo.com/yui/"><h1>Yahoo! UI Library</h1></a>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass <h3>yui <span class="subtitle">3.00PR1</span></h3>
33d85edf47749fa345d7b636b9b4b9d0d0386f44Dav Glass > yui-init.js (source view)
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 #doc3 #classopts { display:none; }
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 <span class="k">var</span> <span class="nx">min</span> <span class="o">=</span> <span class="o">[</span><span class="s1">'log'</span><span class="o">,</span> <span class="s1">'lang'</span><span class="o">,</span> <span class="s1">'array'</span><span class="o">,</span> <span class="s1">'core'</span><span class="o">],</span> <span class="nx">core</span><span class="o">,</span>
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 <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>
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 <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">' setup completing) .'</span><span class="o">);</span>
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>
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 <span class="o">}</span> <span class="k">else</span> <span class="o">{</span>
<span class="nx">core</span> <span class="o">=</span> <span class="o">[</span><span class="s2">"object"</span><span class="o">,</span> <span class="s2">"ua"</span><span class="o">,</span> <span class="s2">"later"</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="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="nx">YUI</span><span class="o">.</span><span class="nx">add</span><span class="o">(</span><span class="s2">"yui"</span><span class="o">,</span> <span class="nx">M</span><span class="o">,</span> <span class="s2">"@VERSION@"</span><span class="o">);</span>