Permalink
Browse files

More misc tweaks

  • Loading branch information...
1 parent 4fd7470 commit 846d1ea765e8f46b629431129c670acbba1d1b2e @Sutto committed Apr 29, 2010
Showing with 3 additions and 3 deletions.
  1. +1 −1 README.md
  2. +2 −2 coffeescripts/shuriken.coffee
View
@@ -8,7 +8,7 @@ that provides a lightweight implementation of namespaces and a few other things
Using it is as simple as including the shuriken.js in your app and writing your code:
// declare BHM as a root namespace.
- Shuriken.as('BHM');
+ var BHM = Shuriken.as('BHM');
// Should print out true.
console.log(BHM instanceof Shuriken.Namespace);
@@ -61,7 +61,7 @@ base.withNS: (key, initializer) ->
currentNS
base.withBase: (closure) ->
- scopedClosure closure, base
+ scopedClosure closure, @baseNS
base.isRoot: ->
not @parent?
@@ -104,7 +104,7 @@ makeNS: (name, parent, sharedPrototype) ->
namespace.prototype: sharedPrototype
new namespace name, parent
-Shuriken.as: (name) -> @[name]: makeNS name
+Shuriken.as: (name) -> makeNS name
@['Shuriken'] = Shuriken

0 comments on commit 846d1ea

Please sign in to comment.