From 30a97ed4dbe03a6f30e03343435580b2d2b157eb Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 29 Sep 2012 16:47:30 +0100 Subject: [PATCH] Using indexOf to check nestTagExceptions No need to use for loop here, instead use indexOf to check tagString is an array item within nestTagExceptions --- editor.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/editor.php b/editor.php index c9068b1..b8eb539 100644 --- a/editor.php +++ b/editor.php @@ -139,10 +139,8 @@ function createNewCMInstance(num) { if (tok.string!=">") {lastString=tok.string}; if (e.type=="keyup"&&e.keyCode=="16"&&lastKeyCode=="190") { canDoEndTag=true; - for (i=0;i-1) { canDoEndTag=false; - } } if ( top.ICEcoder.tagString.slice(0,1)=="/"||