Move the formatters initialize before config.
Showing
1 changed file
with
8 additions
and
8 deletions
... | @@ -674,6 +674,14 @@ Rivets.binders = | ... | @@ -674,6 +674,14 @@ Rivets.binders = |
674 | # instance. | 674 | # instance. |
675 | Rivets.components = {} | 675 | Rivets.components = {} |
676 | 676 | ||
677 | # Rivets.formatters | ||
678 | # ----------------- | ||
679 | |||
680 | # Default formatters (there aren't any), publicly accessible on | ||
681 | # `module.formatters`. Can be overridden globally or local to a `Rivets.View` | ||
682 | # instance. | ||
683 | Rivets.formatters = {} | ||
684 | |||
677 | # Rivets.config | 685 | # Rivets.config |
678 | # ------------- | 686 | # ------------- |
679 | 687 | ||
... | @@ -684,14 +692,6 @@ Rivets.config = | ... | @@ -684,14 +692,6 @@ Rivets.config = |
684 | handler: (context, ev, binding) -> | 692 | handler: (context, ev, binding) -> |
685 | @call context, ev, binding.view.models | 693 | @call context, ev, binding.view.models |
686 | 694 | ||
687 | # Rivets.formatters | ||
688 | # ----------------- | ||
689 | |||
690 | # Default formatters (there aren't any), publicly accessible on | ||
691 | # `module.formatters`. Can be overridden globally or local to a `Rivets.View` | ||
692 | # instance. | ||
693 | Rivets.formatters = {} | ||
694 | |||
695 | # Rivets.factory | 695 | # Rivets.factory |
696 | # -------------- | 696 | # -------------- |
697 | 697 | ... | ... |
-
Please register or sign in to post a comment