Browse Source

fix element validation for the vanilla dependencyLib

Artem Petrenkov 10 years ago
parent
commit
04f83fe1a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      extra/dependencyLibs/inputmask.dependencyLib.js

+ 1 - 1
extra/dependencyLibs/inputmask.dependencyLib.js

@@ -81,7 +81,7 @@ Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.p
 		}();
 
 		function isValidElement(elem) {
-			return elem !== undefined && elem !== null && document.getElementById(elem.id);
+			return elem instanceof Element;
 		}
 
 		function Event(elem) {