Skip to content
Snippets Groups Projects
Commit 6ab6e489 authored by Arlo Breault's avatar Arlo Breault
Browse files

Fix comprehension in Parse.cookie

So that it compiles to,

```
if (!(name in result)) {
  result[name] = value;
}
```

instead of,

```
if (!(indexOf.call(result, name) >= 0)) {
  result[name] = value;
}
```

since `result` is an object, not an array.
parent 095f4a05
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ class Parse
return null if -1 == j
name = decodeURIComponent string.substr(0, j).trim()
value = decodeURIComponent string.substr(j + 1).trim()
result[name] = value if !(name in result)
result[name] = value if name not of result
result
# Parse an address in the form 'host:port'. Returns an Object with keys 'host'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment