Skip to content

Commit 64a5bae

Browse files
committed
Merge pull request #10 from feross/update-docs
add documentation for `prefix` option
2 parents 5047ee0 + 47c4c95 commit 64a5bae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ $ component install LearnBoost/jsonp
2727
the callback (defaults to `callback`)
2828
- `timeout` (`Number`) how long after a timeout error is emitted. `0` to
2929
disable (defaults to `60000`)
30+
- `prefix` (`String`) prefix for the global callback functions that
31+
handle jsonp responses (defaults to `__jp`)
3032
- `fn` callback
3133

32-
The callback is called with `err, data` parameters.
34+
The callback is called with `err, data` parameters.
3335

3436
If it times out, the `err` will be an `Error` object whose `message` is
3537
`Timeout`.

0 commit comments

Comments
 (0)