Browse files

Fixes String#capitalize converts slideDown to Slidedown, not SlideDown

  • Loading branch information...
1 parent 69c6e1b commit 04d33e08131c5f7672704bf87dd3898451ac437c @RStankov RStankov committed with savetheclocktower Jun 13, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/extensions/element.js
View
2 src/extensions/element.js
@@ -36,7 +36,7 @@ Element.addMethods({
if (Object.isFunction(effect))
effect = new effect(element, options);
else if (Object.isString(effect))
- effect = new S2.FX[effect.capitalize()](element, options);
+ effect = new S2.FX[effect.charAt(0).toUpperCase() + effect.substring(1)](element, options);
effect.play(element, options);
return element;
},

0 comments on commit 04d33e0

Please sign in to comment.