Expose the full Rivets namespace from the module so that we can test the classes…
… and objects in isolation.
Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment