Skip to content

Commit

Permalink
fix typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gozala committed Nov 11, 2011
1 parent 5998e7c commit 3313ab7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/api-utils/lib/namespace.js
Expand Up @@ -38,12 +38,12 @@


/** /**
* Function creates a new namespace. Optionally `prototype` object may be * Function creates a new namespace. Optionally `prototype` object may be
* passed in which case namespace objects will inherit form it. Returned value * passed, in which case namespace objects will inherit from it. Returned value
* is a function that can be used to get access to the namespaced properties * is a function that can be used to get access to the namespaced properties
* for the passed object. * for the passed object.
* @examples * @examples
* const privates = Namespace(); * const ns = Namespace();
* privates(myObject).secret = secret; * ns(myObject).secret = secret;
*/ */
exports.Namespace = function Namespace(prototype) { exports.Namespace = function Namespace(prototype) {
prototype = prototype || Object.prototype; prototype = prototype || Object.prototype;
Expand Down
4 changes: 2 additions & 2 deletions packages/api-utils/tests/test-namespace.js
Expand Up @@ -29,7 +29,7 @@ exports["test namespace overlays"] = function(assert) {


object.foo = "baz"; object.foo = "baz";
assert.equal(_(object).foo, "bar", assert.equal(_(object).foo, "bar",
"property changes do not affect namsepaced properties"); "property changes do not affect namespaced properties");


object.bar = "foo"; object.bar = "foo";
assert.ok(!("bar" in _(object)), assert.ok(!("bar" in _(object)),
Expand Down Expand Up @@ -64,7 +64,7 @@ exports["test multi namespace"] = function(assert) {
assert.notEqual(n1(object).foo, n2(object).foo, assert.notEqual(n1(object).foo, n2(object).foo,
"object can have multiple namespaces"); "object can have multiple namespaces");
assert.equal(n1(object).bar, n2(object).bar, assert.equal(n1(object).bar, n2(object).bar,
"object can have matiching props in diff namespaces"); "object can have matching props in diff namespaces");
}; };


require("test").run(exports); require("test").run(exports);

0 comments on commit 3313ab7

Please sign in to comment.