Sha256: 4f65080497c9cd46a166e0580c64fac30a1c7fd1d8efbd421e6b98fd73c6f508
Contents?: true
Size: 1022 Bytes
Versions: 8
Compression:
Stored size: 1022 Bytes
Contents
!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):e.jQuery.dataToJson=t(e.jquery)}(this,function(e){return function(e){"use strict";e(window.jQuery)}(function(e){"use strict";function t(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}e.dataToJson=function(n){var r=function(n){if(t(n))return e(n).find("input,textarea,select").serializeObject();if("object"==typeof n){var i={};for(var o in n)i[o]=t(n[o])?e(n[o]).find("input,textarea,select").serializeObject():r(n[o]);return i}return n},i=function(n,r,o){if(o="undefined"==typeof o?0:o,r="boolean"!=typeof r?!1:r,o>2)return!1;if(e.isPlainObject(n))for(var f in n)r=t(n[f])?r||e("input[type='file']",n[f]).length>0:r||i(n[f],r,o+1);else if(t(n)){var u=e(n);return"INPUT"==u.prop("tagName")&&"file"==u.prop("type")?!0:e("input[type='file']",n).length>0}return r};return i(n)?!1:r(n)}}),jQuery.dataToJson});
Version data entries
8 entries across 8 versions & 1 rubygems