diff --git a/lib/coder.js b/lib/coder.js index e0bb0f7..a3b57fb 100644 --- a/lib/coder.js +++ b/lib/coder.js @@ -117,7 +117,7 @@ var ICEcoder = { // Set up array to store nest data state = cM.getTokenAt(cM.getCursor()).state; - if ("undefined" != typeof state.curState.context) { + if ("undefined" != typeof state.curState) { ICEcoder.htmlTagArray = []; for (cx = state.curState.context; cx; cx = cx.prev) { ICEcoder.htmlTagArray.unshift(cx.tagName); @@ -444,7 +444,7 @@ var ICEcoder = { // Indicate if the nesting structure of the code is OK updateNestingIndicator: function () { - var cM, fileName, nestOK, endDoc; + var cM, nestOK, fileName, endDoc; cM = ICEcoder.getcMInstance(); nestOK = true;