Permalink
Browse files

herp derp fix monkey-patching jQuery textarea test

man, I can't believe this was never a problem, I guess there's not a lot
of selectors selecting for .textarea
  • Loading branch information...
1 parent 5298d48 commit 2d28ba065a864fcc8a7a100943f294cbe6ef47c0 @laughinghan committed Jun 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test.html
View
@@ -108,7 +108,7 @@ <h3>Static LaTeX rendering (<code>.mathquill-embedded-latex</code>) tests</h3>
$.fn.prepend = function(el) {
if ($(el).hasClass('textarea') && $(document.body).hasClass('show-textareas'))
$(el).removeClass('textarea').addClass('shown-textarea');
- else
+ else if ($(el).hasClass('shown-textarea'))
$(el).removeClass('shown-textarea').addClass('textarea');
return _prepend.apply(this, arguments);
};

0 comments on commit 2d28ba0

Please sign in to comment.