Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updating CoffeeScript syntax in generators

  • Loading branch information...
commit a16bd3f368147d4e9580c817eaabf9c63c8d661d 1 parent 8fd9876
@ryanfitz ryanfitz authored
View
2  lib/generators/backbone/scaffold/templates/views/edit_view.coffee
@@ -17,7 +17,7 @@ class <%= view_namespace %>.EditView extends Backbone.View
)
render : ->
- $(this.el).html(this.template(@model.toJSON() ))
+ $(@el).html(@template(@model.toJSON() ))
this.$("form").backboneLink(@model)
View
2  lib/generators/backbone/scaffold/templates/views/model_view.coffee
@@ -15,5 +15,5 @@ class <%= view_namespace %>.<%= singular_name.camelize %>View extends Backbone.V
return false
render: ->
- $(this.el).html(@template(@model.toJSON() ))
+ $(@el).html(@template(@model.toJSON() ))
return this
View
2  lib/generators/backbone/scaffold/templates/views/new_view.coffee
@@ -30,7 +30,7 @@ class <%= view_namespace %>.NewView extends Backbone.View
)
render: ->
- $(this.el).html(@template(@model.toJSON() ))
+ $(@el).html(@template(@model.toJSON() ))
this.$("form").backboneLink(@model)
View
2  lib/generators/backbone/scaffold/templates/views/show_view.coffee
@@ -4,5 +4,5 @@ class <%= view_namespace %>.ShowView extends Backbone.View
template: JST["<%= jst 'show' %>"]
render: ->
- $(this.el).html(@template(@model.toJSON() ))
+ $(@el).html(@template(@model.toJSON() ))
return this
Please sign in to comment.
Something went wrong with that request. Please try again.