Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion 5 src/bloodhound/transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ var Transport = (function() {

_fingerprint: function fingerprint(o) {
o = o || {};
return o.url + o.type + $.param(o.data || {});
//$.param(o.data || {}) crashes because it does not expect a single string value.
//if o.data is string no need to call param

return o.url + o.type + (o.data &&_.isString(o.data) ? o.data : $.param(o.data || {}));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you missing a space here? (o.data &&_.isString(o.data) seems like it should be (o.data && _.isString(o.data).

},

_get: function(o, cb) {
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.