浏览代码

patchValueProperty fix for ie8

Robin Herbots 14 年之前
父节点
当前提交
fd7b86c6f0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      jquery.inputmask.js

+ 1 - 1
jquery.inputmask.js

@@ -607,7 +607,7 @@ This plugin is based on the masked input plugin written by Josh Bush (digitalbus
                     var valueProperty;
                     var valueProperty;
                     if (Object.getOwnPropertyDescriptor)
                     if (Object.getOwnPropertyDescriptor)
                         var valueProperty = Object.getOwnPropertyDescriptor(npt, "value");
                         var valueProperty = Object.getOwnPropertyDescriptor(npt, "value");
-                    if (valueProperty) {
+                    if (valueProperty && valueProperty.get) {
                         if (!npt._valueGet) {
                         if (!npt._valueGet) {
 
 
                             npt._valueGet = valueProperty.get;
                             npt._valueGet = valueProperty.get;