Permalink
Browse files

Make the result less tainted

  • Loading branch information...
1 parent e892e09 commit a4f3bc1e073cf40e97147e5a6feb8c02c0c8d215 @hongymagic committed Apr 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 jQuery.serializeObject.js
@@ -18,7 +18,7 @@
$.fn.serializeObject = function () {
var
- result = {},
+ result = Object.create(null),
mapper = function (element) {
element.name = $.camelCase(element.name);
return element;

0 comments on commit a4f3bc1

Please sign in to comment.