Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor tweaks in globals documentation

  • Loading branch information...
commit 6dfbb11badd5600252be5ac000cc72163b3ac346 1 parent c9557e4
@hns hns authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 modules/globals.js
View
10 modules/globals.js
@@ -234,9 +234,9 @@ Object.defineProperty(this, "global", { value: this });
* is never called again and all calls to `module.singleton` with
* that id return that original value.
*
- * A singleton can be undefined if `module.singleton` is called without
- * `factory` argument with an `id` that hasn't been initialized yet.
- * In this case `module.singleton` will return `undefined` until it is called
+ * `module.singleton` supports lazy initialization. A singleton can remain
+ * undefined if `module.singleton` is called without `factory` argument.
+ * In this case `module.singleton` returns `undefined` until it is first called
* with a `factory` argument.
*
* @param {String} id the singleton id
@@ -342,7 +342,7 @@ Object.defineProperty(this, "global", { value: this });
*
* @param {String} path the resource path
* @name getResource
- * @return an instance of org.ringojs.repository.Resource
+ * @return {org.ringojs.repository.Resource} a resource
* @see #getRepository
* @function
*/
@@ -353,7 +353,7 @@ Object.defineProperty(this, "global", { value: this });
* representing the resolved path.
*
* @param {String} path the repository path
- * @return an instanceo of org.ringojs.repository.Repository
+ * @return {org.ringojs.repository.Repository} a repository
* @name getRepository
* @see #getResource
* @function
Please sign in to comment.
Something went wrong with that request. Please try again.