]> source.dussan.org Git - jquery.git/commit
Serialize: Fix object detection
authorMichał Gołębiowski <m.goleb@gmail.com>
Mon, 7 Sep 2015 21:22:56 +0000 (23:22 +0200)
committerMichał Gołębiowski <m.goleb@gmail.com>
Mon, 7 Sep 2015 22:33:09 +0000 (00:33 +0200)
commita9930565f157df4bcae63c108aeb9f4825c7314a
tree49b9f7e884a7ffd68fe38737d17b11918a2e07f4
parentf0b86ec050305ac1fbddd4943361b423d86feb4b
Serialize: Fix object detection

jQuery.type doesn't just return "null" for null but also e.g. "array"
for arrays instead of object so it's not really a typeof analogue.

My suggestion was stupid. Sorry.

(cherry-picked from 14c0fe44328f22debb5b531d2b671923658542b3)

Refs 3d7ce0a65f0707ff01a851822e57ba80adcff075
src/serialize.js