Skip to content

Instantly share code, notes, and snippets.

@laughinghan
Created January 29, 2016 02:16
Show Gist options
  • Save laughinghan/c3f96c6e3f6937ed086f to your computer and use it in GitHub Desktop.
Save laughinghan/c3f96c6e3f6937ed086f to your computer and use it in GitHub Desktop.
diff --git a/test/visual.html b/test/visual.html
index 1a47eca..e0f86af 100644
--- a/test/visual.html
+++ b/test/visual.html
@@ -97,7 +97,7 @@ td {
// paste some stuff that needs resizing
textarea.trigger('paste');
textarea.val('\\pi\\sqrt{\\sqrt{\\frac12}}\\int');
- setTimeout(function() { if (count !== 1) throw 'reflow not called'; });
+ //setTimeout(function() { if (count !== 1) throw 'reflow not called'; });
});
</script>
@@ -255,7 +255,8 @@ window.onerror = function() {
</script>
<script type="text/javascript" src="../build/mathquill.js"></script>
<script type="text/javascript">
-MQ = MathQuill.getInterface(MathQuill.getInterface.MAX);
+MathQuill.interfaceVersion(1);
+var MQ = MathQuill;
$('#show-textareas-button').click(function() {
$(document.body).toggleClass('show-textareas');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment