From 5dc88b66f32dd78e3d5f667ac8d41ccfac39a9c8 Mon Sep 17 00:00:00 2001 From: Simon Meers Date: Fri, 2 Aug 2013 22:02:43 +1000 Subject: [PATCH] Fixed "Uncaught ReferenceError: frame is not defined". --- markitup/jquery.markitup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markitup/jquery.markitup.js b/markitup/jquery.markitup.js index 5bb69c3..a1371b8 100755 --- a/markitup/jquery.markitup.js +++ b/markitup/jquery.markitup.js @@ -512,7 +512,7 @@ } else { iFrame.insertBefore(header); } - previewWindow = iFrame[iFrame.length - 1].contentWindow || frame[iFrame.length - 1]; + previewWindow = iFrame[iFrame.length - 1].contentWindow || iFrame[iFrame.length - 1]; } } else if (altKey === true) { if (iFrame) {