mirror of
https://github.com/flynx/serialize.js.git
synced 2026-07-10 03:00:57 +00:00
cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
58d09563aa
commit
2c72693d03
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-serialize",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"description": "experimental extended json serializaion...",
|
||||
"main": "serialize.js",
|
||||
"scripts": {
|
||||
|
||||
10
serialize.js
10
serialize.js
@ -54,7 +54,6 @@
|
||||
/*********************************************************************/
|
||||
|
||||
|
||||
var EMPTY = '<empty>'
|
||||
var NULL = 'null'
|
||||
var UNDEFINED = 'undefined'
|
||||
var NAN = 'NaN'
|
||||
@ -558,15 +557,6 @@ module.eJSON = {
|
||||
initial instanceof Array
|
||||
&& initial.length++
|
||||
continue }
|
||||
if(str.slice(i, i+EMPTY.length) == EMPTY){
|
||||
index++
|
||||
i += EMPTY.length
|
||||
if(str[i] == ','){
|
||||
i++ }
|
||||
// XXX this feels hackish -- can this be deligated to the handler???
|
||||
initial instanceof Array
|
||||
&& initial.length++
|
||||
continue }
|
||||
|
||||
// end of input...
|
||||
if(i >= str.length-1){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user