wp/wp-includes/js/jquery/jquery.serialize-object.js
changeset 18 be944660c56a
parent 0 d970ebf37754
--- a/wp/wp-includes/js/jquery/jquery.serialize-object.js	Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-includes/js/jquery/jquery.serialize-object.js	Wed Sep 21 18:19:35 2022 +0200
@@ -1,7 +1,7 @@
 /*!
- * jQuery serializeObject - v0.2 - 1/20/2010
+ * jQuery serializeObject - v0.2-wp - 1/20/2010
  * http://benalman.com/projects/jquery-misc-plugins/
- * 
+ *
  * Copyright (c) 2010 "Cowboy" Ben Alman
  * Dual licensed under the MIT and GPL licenses.
  * http://benalman.com/about/license/
@@ -12,20 +12,20 @@
 
 (function($,undefined){
   '$:nomunge'; // Used by YUI compressor.
-  
+
   $.fn.serializeObject = function(){
     var obj = {};
-    
+
     $.each( this.serializeArray(), function(i,o){
       var n = o.name,
         v = o.value;
-        
+
         obj[n] = obj[n] === undefined ? v
-          : $.isArray( obj[n] ) ? obj[n].concat( v )
+          : Array.isArray( obj[n] ) ? obj[n].concat( v )
           : [ obj[n], v ];
     });
-    
+
     return obj;
   };
-  
+
 })(jQuery);