Skip to content

Commit e16072a

Browse files
committed
Crafty Component constructor names to lower case
Crafty component's constructor names are all lowercase in the examples so scaffolding should probably create lowercase constructor names too. Fixed.
1 parent 32c4225 commit e16072a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

component/templates/_base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Crafty.c('<%= name %>', {
1212
},
1313

1414
// constructor
15-
<%= name %>: function(placeholder) {
15+
<%= name.toLowerCase() %>: function(placeholder) {
1616
this.placeholder = placeholder;
1717
}
1818

0 commit comments

Comments
 (0)