UNPKG

lfr-amd-loader

Version:

AMD Loader with support for combo URL and conditional loading

320 lines (108 loc) 4.4 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Class: PathResolver</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: PathResolver</h1> <section> <header> <h2> PathResolver </h2> </header> <article> <div class="container-overview"> <dt> <h4 class="name" id="PathResolver"><span class="type-signature"></span>new PathResolver<span class="signature">()</span><span class="type-signature"></span></h4> </dt> <dd> <div class="description"> Creates an instance of PathResolver class. </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="path-resolver.js.html">path-resolver.js</a>, <a href="path-resolver.js.html#line8">line 8</a> </li></ul></dd> </dl> </dd> </div> <h3 class="subsection-title">Methods</h3> <dl> <dt> <h4 class="name" id="resolvePath"><span class="type-signature"></span>resolvePath<span class="signature">(module, dependency)</span><span class="type-signature"> &rarr; {string}</span></h4> </dt> <dd> <div class="description"> Resolves the path of module. </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">string</span> </td> <td class="description last">Module path which will be used as reference to resolve the path of the dependency.</td> </tr> <tr> <td class="name"><code>dependency</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last">The dependency path, which have to be resolved.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="path-resolver.js.html">path-resolver.js</a>, <a href="path-resolver.js.html#line20">line 20</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> The resolved dependency path. </div> <dl> <dt> Type </dt> <dd> <span class="param-type">string</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="PathResolver.html">PathResolver</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 Thu Dec 18 2014 12:11:03 GMT-0800 (PST) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>