inputmask.dependencyLib.jqlite.js 2.3 KB

123456789101112131415161718192021222324252627282930313233
  1. /*!
  2. * inputmask.dependencyLib.jqlite.js
  3. * http://github.com/RobinHerbots/jquery.inputmask
  4. * Copyright (c) 2010 - 2015 Robin Herbots
  5. * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
  6. * Version: 3.2.1-89
  7. */
  8. !function(factory) {
  9. "function" == typeof define && define.amd ? define([ "jqlite" ], factory) : "object" == typeof exports ? module.exports = factory(require("jqlite")) : factory(jQuery);
  10. }(function($) {
  11. function type(obj) {
  12. return null == obj ? obj + "" : "object" == typeof obj || "function" == typeof obj ? class2type[class2type.toString.call(obj)] || "object" : typeof obj;
  13. }
  14. for (var class2type = {}, classTypes = "Boolean Number String Function Array Date RegExp Object Error".split(" "), nameNdx = 0; nameNdx < classTypes.length; nameNdx++) class2type["[object " + classTypes[nameNdx] + "]"] = classTypes[nameNdx].toLowerCase();
  15. return $.isFunction = function(obj) {
  16. return "function" === type(obj);
  17. }, $.isArray = Array.isArray, $.isWindow = function(obj) {
  18. return null != obj && obj === obj.window;
  19. }, $.isPlainObject = function(obj) {
  20. return "object" !== type(obj) || obj.nodeType || $.isWindow(obj) ? !1 : obj.constructor && !class2type.hasOwnProperty.call(obj.constructor.prototype, "isPrototypeOf") ? !1 : !0;
  21. }, $.extend = function() {
  22. var options, name, src, copy, copyIsArray, clone, target = arguments[0] || {}, i = 1, length = arguments.length, deep = !1;
  23. for ("boolean" == typeof target && (deep = target, target = arguments[i] || {},
  24. i++), "object" == typeof target || $.isFunction(target) || (target = {}), i === length && (target = this,
  25. i--); length > i; i++) if (null != (options = arguments[i])) for (name in options) src = target[name],
  26. copy = options[name], target !== copy && (deep && copy && ($.isPlainObject(copy) || (copyIsArray = $.isArray(copy))) ? (copyIsArray ? (copyIsArray = !1,
  27. clone = src && $.isArray(src) ? src : []) : clone = src && $.isPlainObject(src) ? src : {},
  28. target[name] = $.extend(deep, clone, copy)) : void 0 !== copy && (target[name] = copy));
  29. return target;
  30. }, $.data = function(elem, name, data) {
  31. return $(elem).data(name, data);
  32. }, window.dependencyLib = $, $;
  33. });