gallery.js.html revision 459be59fed8a0285ddca050056e969d1ac900ecb
5690d2f46bf6dedb53d41f888e290df0526f32b1kess<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
e57e674bd581bf1e801f749f92955bc330627409nd <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
031b91a62d25106ae69d4693475c79618dd5e884fielding <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
031b91a62d25106ae69d4693475c79618dd5e884fielding <link rel="stylesheet" type="text/css" href="assets/api.css" />
031b91a62d25106ae69d4693475c79618dd5e884fielding <script type="text/javascript" src="assets/api-js"></script>
031b91a62d25106ae69d4693475c79618dd5e884fielding <script type="text/javascript" src="assets/ac-js"></script>
acc36ab93565d2880447d535da6ca6e5feac7a70nd <h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1>
acc36ab93565d2880447d535da6ca6e5feac7a70nd <h3>loader <span class="subtitle">3.0.0</span></h3>
acc36ab93565d2880447d535da6ca6e5feac7a70nd <a href="/index.html" title="Yahoo! UI Library">Yahoo! UI Library</a>
acc36ab93565d2880447d535da6ca6e5feac7a70nd > <a href="/module_loader.html" title="loader">loader</a>
7db9f691a00ead175b03335457ca296a33ddf31bnd > gallery.js (source view)
aaf75c27909404147cc0edb74491770e3741c195nd <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <fieldset>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess </fieldset>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess #doc3 .classopts { display:none; }
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <div class="highlight"><pre><span class="c1">// bootstrap loader</span>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess<span class="c1">// parse the use array for gallery components</span>
e57e674bd581bf1e801f749f92955bc330627409nd<span class="c1">// add module stubs for each gallery module</span>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess<span class="c1">//////////////////////////////////////////////////</span>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess<span class="c1">// loader bootstrap could pull in the known</span>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess<span class="c1">// no: use the pattern specification</span>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess<span class="c1">// maybe use parameters can be passed to the module def</span>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess<span class="c1">//////////////////////////////////////////////////</span>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess<span class="nx">patterns</span><span class="o">:</span> <span class="p">{</span>
0a5a376b4b2a062a845527d3709604b1ef0f55e5kess <span class="s1">'gallery-'</span><span class="o">:</span> <span class="p">{</span>
9294268d4d5ac750389453cca2639520a05df6d2kess <span class="c1">// base path is used to build the url</span>
9294268d4d5ac750389453cca2639520a05df6d2kess <span class="c1">// @TODO resolve pattern specific overrides for local development</span>
9294268d4d5ac750389453cca2639520a05df6d2kess <span class="nx">base</span><span class="o">:</span> <span class="s1">'http://yui.yahooapis.com/gallery-2009.10.26-22.41.46/build/'</span>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <span class="s1">'yui2.8.0-'</span><span class="o">:</span> <span class="p">{</span>
aaf75c27909404147cc0edb74491770e3741c195nd <span class="nx">base</span><span class="o">:</span> <span class="s1">'http://yui.yahooapis.com/2.8.0/build/'</span>
aaf75c27909404147cc0edb74491770e3741c195nd <span class="c1">// Additional dependencies for a given component won't be resolved in</span>
aaf75c27909404147cc0edb74491770e3741c195nd <span class="c1">// the YUI 3 system unless we actually look to code to YAHOO.register</span>
e57e674bd581bf1e801f749f92955bc330627409nd <span class="c1">// @TODO do we need a facility for discovering new dependencies after</span>
e57e674bd581bf1e801f749f92955bc330627409nd <span class="c1">// the initial set is loaded? For non-YUI3 code, this is probably not</span>
e57e674bd581bf1e801f749f92955bc330627409nd <span class="c1">// an option since a component's dependencies need to have been evaluated</span>
e57e674bd581bf1e801f749f92955bc330627409nd <span class="c1">// in the page before the component can be fetched.</span>
e57e674bd581bf1e801f749f92955bc330627409nd <span class="c1">// the idea here is that the dependencies for the module refer to</span>
aaf75c27909404147cc0edb74491770e3741c195nd <span class="c1">// other modules that should be captured in this filter. This means</span>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <span class="nx">propagatePrefix</span><span class="o">:</span> <span class="kc">true</span>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <span class="c1">// @TODO yui 2 loader bootstrapper?</span>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <span class="c1">// mini substitute in core... would prefer if we didn't have a different way</span>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <span class="c1">// to render this template. At any rate, the problem is this:</span>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <span class="c1">// yui2-menu would have the path resolved to:</span>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <span class="c1">// http://yui.yahooapis.com/2.8.0/build/yui2.8.0-menu/yui2.8.0-menu-min.js</span>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <span class="c1">// http://yui.yahooapis.com/2.8.0/build/menu/menu-min.js</span>
e57e674bd581bf1e801f749f92955bc330627409nd <span class="c1">// @TODO can this be handled simply be having a flag at whether or not the prefix</span>
e57e674bd581bf1e801f749f92955bc330627409nd <span class="c1">// is included when building the path? Or do we need a filter? Or a full template</span>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_align-plugin.html" title="align-plugin">align-plugin</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_anim.html" title="anim">anim</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_async-queue.html" title="async-queue">async-queue</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_attribute.html" title="attribute">attribute</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_base.html" title="base">base</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_cache.html" title="cache">cache</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_collection.html" title="collection">collection</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_console.html" title="console">console</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
d5928c093177f61328dcaf10abef820f921c0b99nd <li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li>
e57e674bd581bf1e801f749f92955bc330627409nd <li class=""><a href="module_datatype.html" title="datatype">datatype</a></li>
e57e674bd581bf1e801f749f92955bc330627409nd <li class=""><a href="module_dd.html" title="dd">dd</a></li>
2bf26d5e9aea5ff2920c989b790416c1f0dc4494nd <li class=""><a href="module_dom.html" title="dom">dom</a></li>
3ce99c71c1ee210a8d163ca2ed08ee3c6e0ae6a6nd <li class=""><a href="module_dump.html" title="dump">dump</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_event.html" title="event">event</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_event-custom.html" title="event-custom">event-custom</a></li>
e57e674bd581bf1e801f749f92955bc330627409nd <li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_history.html" title="history">history</a></li>
e57e674bd581bf1e801f749f92955bc330627409nd <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_io.html" title="io">io</a></li>
e57e674bd581bf1e801f749f92955bc330627409nd <li class=""><a href="module_json.html" title="json">json</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class="selected"><a href="module_loader.html" title="loader">loader</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_node.html" title="node">node</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_oop.html" title="oop">oop</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_overlay.html" title="overlay">overlay</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_plugin.html" title="plugin">plugin</a></li>
e57e674bd581bf1e801f749f92955bc330627409nd <li class=""><a href="module_pluginhost.html" title="pluginhost">pluginhost</a></li>
e57e674bd581bf1e801f749f92955bc330627409nd <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
e57e674bd581bf1e801f749f92955bc330627409nd <li class=""><a href="module_queue-promote.html" title="queue-promote">queue-promote</a></li>
42b4935758df9d0b97689036ae76bdaa02dea031nd <li class=""><a href="module_shim-plugin.html" title="shim-plugin">shim-plugin</a></li>
e57e674bd581bf1e801f749f92955bc330627409nd <li class=""><a href="module_slider.html" title="slider">slider</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_sortable.html" title="sortable">sortable</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_substitute.html" title="substitute">substitute</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_test.html" title="test">test</a></li>
42b4935758df9d0b97689036ae76bdaa02dea031nd <li class=""><a href="module_widget.html" title="widget">widget</a></li>
42b4935758df9d0b97689036ae76bdaa02dea031nd <li class=""><a href="module_widget-child.html" title="widget-child">widget-child</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_widget-parent.html" title="widget-parent">widget-parent</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_widget-position-align.html" title="widget-position-align">widget-position-align</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_widget-position-constrain.html" title="widget-position-constrain">widget-position-constrain</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class=""><a href="module_yui.html" title="yui">yui</a></li>
e57e674bd581bf1e801f749f92955bc330627409nd <li class=""><a href="Loader.html" title="Loader">Loader</a></li>
5690d2f46bf6dedb53d41f888e290df0526f32b1kess <li class="selected"><a href="gallery.js.html" title="gallery.js">gallery.js</a></li>
42b4935758df9d0b97689036ae76bdaa02dea031nd <li class=""><a href="loader.js.html" title="loader.js">loader.js</a></li>
var ALL_YUI_PROPS = [{"access": "", "host": "Loader", "name": "addModule", "url": "Loader.html#method_addModule", "type": "method"}, {"access": "private", "host": "Loader", "name": "_addSkin", "url": "Loader.html#method__addSkin", "type": "method"}, {"access": "", "host": "Loader", "name": "allowRollup", "url": "Loader.html#property_allowRollup", "type": "property"}, {"access": "", "host": "Loader", "name": "attaching", "url": "Loader.html#property_attaching", "type": "property"}, {"access": "", "host": "Loader", "name": "base", "url": "Loader.html#property_base", "type": "property"}, {"access": "", "host": "Loader", "name": "calculate", "url": "Loader.html#method_calculate", "type": "method"}, {"access": "", "host": "Loader", "name": "charset", "url": "Loader.html#property_charset", "type": "property"}, {"access": "", "host": "Loader", "name": "combine", "url": "Loader.html#property_combine", "type": "property"}, {"access": "", "host": "Loader", "name": "comboBase", "url": "Loader.html#property_comboBase", "type": "property"}, {"access": "", "host": "Loader", "name": "context", "url": "Loader.html#property_context", "type": "property"}, {"access": "", "host": "Loader", "name": "cssAttributes", "url": "Loader.html#property_cssAttributes", "type": "property"}, {"access": "", "host": "Loader", "name": "data", "url": "Loader.html#property_data", "type": "property"}, {"access": "", "host": "Loader", "name": "dirty", "url": "Loader.html#property_dirty", "type": "property"}, {"access": "private", "host": "Loader", "name": "_explode", "url": "Loader.html#method__explode", "type": "method"}, {"access": "", "host": "Loader", "name": "filter", "url": "Loader.html#property_filter", "type": "property"}, {"access": "private", "host": "Loader", "name": "_filter", "url": "Loader.html#method__filter", "type": "method"}, {"access": "", "host": "Loader", "name": "filters", "url": "Loader.html#property_filters", "type": "property"}, {"access": "", "host": "Loader", "name": "force", "url": "Loader.html#property_force", "type": "property"}, {"access": "", "host": "Loader", "name": "formatSkin", "url": "Loader.html#method_formatSkin", "type": "method"}, {"access": "", "host": "Loader", "name": "getProvides", "url": "Loader.html#method_getProvides", "type": "method"}, {"access": "", "host": "Loader", "name": "getRequires", "url": "Loader.html#method_getRequires", "type": "method"}, {"access": "", "host": "Loader", "name": "ignore", "url": "Loader.html#property_ignore", "type": "property"}, {"access": "", "host": "Loader", "name": "ignoreRegistered", "url": "Loader.html#property_ignoreRegistered", "type": "property"}, {"access": "", "host": "Loader", "name": "insert", "url": "Loader.html#method_insert", "type": "method"}, {"access": "", "host": "Loader", "name": "insertBefore", "url": "Loader.html#property_insertBefore", "type": "property"}, {"access": "", "host": "Loader", "name": "inserted", "url": "Loader.html#property_inserted", "type": "property"}, {"access": "private", "host": "Loader", "name": "_internalCallback", "url": "Loader.html#property__internalCallback", "type": "property"}, {"access": "", "host": "Loader", "name": "jsAttributes", "url": "Loader.html#property_jsAttributes", "type": "property"}, {"access": "", "host": "Loader", "name": "loaded", "url": "Loader.html#property_loaded", "type": "property"}, {"access": "", "host": "Loader", "name": "loadNext", "url": "Loader.html#method_loadNext", "type": "method"}, {"access": "", "host": "Loader", "name": "loadOptional", "url": "Loader.html#property_loadOptional", "type": "property"}, {"access": "", "host": "Loader", "name": "maxURLLength", "url": "Loader.html#property_maxURLLength", "type": "property"}, {"access": "", "host": "Loader", "name": "moduleInfo", "url": "Loader.html#property_moduleInfo", "type": "property"}, {"access": "", "host": "Loader", "name": "onCSS", "url": "Loader.html#method_onCSS", "type": "method"}, {"access": "", "host": "Loader", "name": "onFailure", "url": "Loader.html#method_onFailure", "type": "method"}, {"access": "", "host": "Loader", "name": "onProgress", "url": "Loader.html#method_onProgress", "type": "method"}, {"access": "", "host": "Loader", "name": "onSuccess", "url": "Loader.html#method_onSuccess", "type": "method"}, {"access": "", "host": "Loader", "name": "onTimeout", "url": "Loader.html#method_onTimeout", "type": "method"}, {"access": "", "host": "Loader", "name": "patterns", "url": "Loader.html#property_patterns", "type": "property"}, {"access": "private", "host": "Loader", "name": "_reduce", "url": "Loader.html#method__reduce", "type": "method"}, {"access": "", "host": "Loader", "name": "require", "url": "Loader.html#method_require", "type": "method"}, {"access": "", "host": "Loader", "name": "required", "url": "Loader.html#property_required", "type": "property"}, {"access": "private", "host": "Loader", "name": "_rollup", "url": "Loader.html#method__rollup", "type": "method"}, {"access": "", "host": "Loader", "name": "rollups", "url": "Loader.html#property_rollups", "type": "property"}, {"access": "", "host": "Loader", "name": "root", "url": "Loader.html#property_root", "type": "property"}, {"access": "private", "host": "Loader", "name": "_setup", "url": "Loader.html#method__setup", "type": "method"}, {"access": "", "host": "Loader", "name": "skin", "url": "Loader.html#property_skin", "type": "property"}, {"access": "", "host": "Loader", "name": "skipped", "url": "Loader.html#property_skipped", "type": "property"}, {"access": "private", "host": "Loader", "name": "_sort", "url": "Loader.html#method__sort", "type": "method"}, {"access": "", "host": "Loader", "name": "sorted", "url": "Loader.html#property_sorted", "type": "property"}, {"access": "", "host": "Loader", "name": "timeout", "url": "Loader.html#property_timeout", "type": "property"}, {"access": "private", "host": "Loader", "name": "_url", "url": "Loader.html#method__url", "type": "method"}];