85be694f by Michael Richards

Expose the full Rivets namespace from the module so that we can test the classes…

… and objects in isolation.
1 parent 38784e93
...@@ -512,6 +512,9 @@ Rivets.formatters = {} ...@@ -512,6 +512,9 @@ Rivets.formatters = {}
512 512
513 # The Rivets.js module factory. 513 # The Rivets.js module factory.
514 Rivets.factory = (exports) -> 514 Rivets.factory = (exports) ->
515 # Exposes the full Rivets namespace. This is mainly used for isolated testing.
516 exports._ = Rivets
517
515 # Exposes the core binding routines that can be extended or stripped down. 518 # Exposes the core binding routines that can be extended or stripped down.
516 exports.binders = Rivets.binders 519 exports.binders = Rivets.binders
517 520
......