浏览代码

Merge remote-tracking branch 'origin/3.x' into 3.x

# Conflicts:
#	js/inputmask.js
Robin Herbots 9 年之前
父节点
当前提交
5143f94b7f
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      js/inputmask.js

+ 5 - 5
js/inputmask.js

@@ -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();