Skip to content
This repository has been archived by the owner on Apr 10, 2019. It is now read-only.

Commit

Permalink
fixing error on swag (handlebars helper) on a test
Browse files Browse the repository at this point in the history
  • Loading branch information
giggio committed Oct 27, 2013
1 parent 10bc522 commit 7f2b65d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/javascripts/bootstrap.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ requirejs.config
exports: '$.fn.expander'
'swag':
deps: ['handlebars']
exports: 'Swag'
exports: 'window.Swag'
'jrating':
deps: [ 'jquery' ]
exports: '$.fn.jRating'
Expand Down
5 changes: 4 additions & 1 deletion public/javascripts/test/store/productView.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ define [
'areas/store/models/cart'
'underscore'
'areas/store/models/product'
], ($, ProductView, Backbone, Cart, _, Product) ->
'swag'
'handlebars'
], ($, ProductView, Backbone, Cart, _, Product, Swag, Handlebars) ->
Swag.registerHelpers Handlebars
product1 = generatorc.product.a()
product2 = generatorc.product.b()
product3 = generatorc.product.a()
Expand Down

0 comments on commit 7f2b65d

Please sign in to comment.