mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-10 18:46:48 +01:00
Check typeof parent and swap vars around
Checking state.curState.context can cause issues is state.curState doesn't exist so just check state.curState instead Swapped a couple of vars round to match order of usage in func
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user