|
@@ -2636,11 +2636,11 @@
|
|
|
|
|
|
|
|
function renderColorMask(input, buffer, caretPos) {
|
|
function renderColorMask(input, buffer, caretPos) {
|
|
|
function handleStatic() {
|
|
function handleStatic() {
|
|
|
- if (!static && (test.fn === null || testPos.input === undefined)) {
|
|
|
|
|
- static = true;
|
|
|
|
|
|
|
+ if (!isStatic && (test.fn === null || testPos.input === undefined)) {
|
|
|
|
|
+ isStatic = true;
|
|
|
maskTemplate += "<span class='im-static''>"
|
|
maskTemplate += "<span class='im-static''>"
|
|
|
- } else if (static && (test.fn !== null && testPos.input !== undefined)) {
|
|
|
|
|
- static = false;
|
|
|
|
|
|
|
+ } else if (isStatic && (test.fn !== null && testPos.input !== undefined)) {
|
|
|
|
|
+ isStatic = false;
|
|
|
maskTemplate += "</span>"
|
|
maskTemplate += "</span>"
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -2653,7 +2653,7 @@
|
|
|
caretPos = {begin: caretPos, end: caretPos};
|
|
caretPos = {begin: caretPos, end: caretPos};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- var maskTemplate = "", static = false;
|
|
|
|
|
|
|
+ var maskTemplate = "", isStatic = false;
|
|
|
if (buffer != "") {
|
|
if (buffer != "") {
|
|
|
var ndxIntlzr, pos = 0,
|
|
var ndxIntlzr, pos = 0,
|
|
|
test, testPos, lvp = getLastValidPosition();
|
|
test, testPos, lvp = getLastValidPosition();
|