use JSON.stringify

This commit is contained in:
Sanj 2012-02-20 22:29:02 +05:30
parent 0c0017bb98
commit c5cfaa24eb

View File

@ -109,5 +109,5 @@ function getStopForm(stop) {
}
function isEmpty(obj) {
return ($.toJSON(obj) == "{}")
return (JSON.stringify(obj) == "{}")
}