Permalink
Browse files

Removed unneeded bindAll call, added usage notes for code generators.

  • Loading branch information...
1 parent c916bdf commit d58866476b14ae701c8804da4f72f59e261b27fe @bnolan committed Apr 24, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −0 src/main.coffee
  2. +0 −3 templates/views/view.coffee
View
5 src/main.coffee
@@ -31,6 +31,11 @@ Usage:
capt watch
- watch the current project and recompile as needed
+
+ Code generators:
+ * capt generate model post
+ * capt generate controller posts
+ * capt generate view posts show
'''
View
3 templates/views/view.coffee
@@ -2,10 +2,7 @@ class <%= view.capitalize() %>View extends Backbone.View
events:
initialize: ->
- _.bindAll(@, 'render')
render: ->
@<%= view.capitalize() %>View = <%= view.capitalize() %>View
-
-new <%= view.capitalize() %>View

0 comments on commit d588664

Please sign in to comment.