lfr-amd-loader
Version:
AMD Loader with support for combo URL and conditional loading
487 lines (166 loc) • 6.34 kB
HTML
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Class: URLBuilder</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Class: URLBuilder</h1>
<section>
<header>
<h2>
URLBuilder
</h2>
</header>
<article>
<div class="container-overview">
<dt>
<h4 class="name" id="URLBuilder"><span class="type-signature"></span>new URLBuilder<span class="signature">(configParser)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<div class="description">
Creates an instance of URLBuilder class.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>configParser</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="description last">instance of <a href="ConfigParser.html">ConfigParser</a> object.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="url-builder.js.html">url-builder.js</a>, <a href="url-builder.js.html#line14">line 14</a>
</li></ul></dd>
</dl>
</dd>
</div>
<h3 class="subsection-title">Methods</h3>
<dl>
<dt>
<h4 class="name" id="_getModulePath"><span class="type-signature"><protected> </span>_getModulePath<span class="signature">(module)</span><span class="type-signature"> → {string}</span></h4>
</dt>
<dd>
<div class="description">
Returns the path for a module. If module has property path, it will be returned directly. Otherwise,
the name of module will be used and extension .js will be added to module name if omitted.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>module</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="description last">The module which path should be returned.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="url-builder.js.html">url-builder.js</a>, <a href="url-builder.js.html#line87">line 87</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Module path.
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">string</span>
</dd>
</dl>
</dd>
<dt>
<h4 class="name" id="build"><span class="type-signature"></span>build<span class="signature">(modules)</span><span class="type-signature"> → {array}</span></h4>
</dt>
<dd>
<div class="description">
Returns a list of URLs from provided list of modules.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>modules</code></td>
<td class="type">
<span class="param-type">array</span>
</td>
<td class="description last">List of modules for which URLs should be created.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="url-builder.js.html">url-builder.js</a>, <a href="url-builder.js.html#line27">line 27</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
List of URLs.
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">array</span>
</dd>
</dl>
</dd>
</dl>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Index</a></h2><h3>Classes</h3><ul><li><a href="ConfigParser.html">ConfigParser</a></li><li><a href="DependencyBuilder.html">DependencyBuilder</a></li><li><a href="EventEmitter.html">EventEmitter</a></li><li><a href="Loader.html">Loader</a></li><li><a href="URLBuilder.html">URLBuilder</a></li></ul><h3>Events</h3><ul><li><a href="Loader.html#event:moduleRegister">moduleRegister</a></li></ul>
</nav>
<br clear="both">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha5</a> on Tue Jun 16 2015 17:51:36 GMT+0200 (CEST)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>