dependencyLib_zepto.js 1.4 KB

123456789101112131415161718192021
  1. /*!
  2. * dependencyLib_zepto.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-85
  7. */
  8. !function(factory) {
  9. "function" == typeof define && define.amd ? define([ "zepto", "zepto_data", "zepto_event" ], factory) : "object" == typeof exports ? module.exports = factory(require("zepto"), require("zepto_data"), require("zepto_event")) : factory(Zepto);
  10. }(function($) {
  11. return $.extend = function() {
  12. var options, name, src, copy, copyIsArray, clone, target = arguments[0] || {}, i = 1, length = arguments.length, deep = !1;
  13. for ("boolean" == typeof target && (deep = target, target = arguments[i] || {},
  14. i++), "object" == typeof target || $.isFunction(target) || (target = {}), i === length && (target = this,
  15. i--); length > i; i++) if (null != (options = arguments[i])) for (name in options) src = target[name],
  16. copy = options[name], target !== copy && (deep && copy && ($.isPlainObject(copy) || (copyIsArray = $.isArray(copy))) ? (copyIsArray ? (copyIsArray = !1,
  17. clone = src && $.isArray(src) ? src : []) : clone = src && $.isPlainObject(src) ? src : {},
  18. target[name] = $.extend(deep, clone, copy)) : void 0 !== copy && (target[name] = copy));
  19. return target;
  20. }, $.data = $.fn.data, window.dependencyLib = $, $;
  21. });