Closed sculove closed 7 years ago
a persist couldn't remove previous data. and it couldn't update null or undefined or ""
null
undefined
""
$.persist("key", { val : 10 }); // { val: 10 } $.persist("key", null); // { val: 10 } $.persist("key", undefined); // { val: 10 } $.persist("key", ""); // { val: 10 }
$.persist("key", { val : 10 }); // { val: 10 } $.persist("key", null); // null $.persist("key", undefined); // undefined $.persist("key", ""); // ""
Description
a persist couldn't remove previous data. and it couldn't update
null
orundefined
or""
Steps to check or reproduce
AS-IS
TO-BE