Permalink
Browse files

Changed method for defining the exports variable so simpler to require

  • Loading branch information...
KyleAMathews committed Jun 1, 2012
1 parent 8c37d12 commit a5e41c8a53c4fb37e9fe55d6a778e94a421d6538
@@ -1,7 +1,7 @@
$ = jQuery
expandingTextarea = require('widgets/expanding_textarea/expanding_textarea')
-class exports.ExpandingTextareaView extends Backbone.View
+module.exports = class ExpandingTextareaView extends Backbone.View
render: =>
context = {}
View
@@ -1,5 +1,5 @@
ModalTemplate = require 'widgets/modal/modal'
-class exports.ModalView extends Backbone.View
+module.exports = class ModalView extends Backbone.View
className: 'modal'
@@ -1,5 +1,5 @@
ProgressBarTemplate = require 'widgets/progress_bar/progress_bar'
-class exports.ProgressBarView extends Backbone.View
+module.exports = class ProgressBarView extends Backbone.View
render: ->
@$el.html ProgressBarTemplate()
@@ -1,5 +1,5 @@
ToggleTemplate = require 'widgets/toggle/toggle'
-class exports.ToggleView extends Backbone.View
+module.exports = class ToggleView extends Backbone.View
events:
'mousedown button': 'toggleActive'

0 comments on commit a5e41c8

Please sign in to comment.