docsearch.js
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,1 +1,11 @@ | ||
<a name="1.0.1"></a> | ||
## [1.0.1](https://github.com/algolia/docsearch/compare/v1.0.0...v1.0.1) (2015-12-24) | ||
### Bug Fixes | ||
* **handleSelected:** ensure we're calling setVal on the right object ([31abbd7](https://github.com/algolia/docsearch/commit/31abbd7)), closes [#51](https://github.com/algolia/docsearch/issues/51) | ||
<a name="1.0.0"></a> | ||
@@ -2,0 +12,0 @@ # [1.0.0](https://github.com/algolia/docsearch/compare/v0.0.7...v1.0.0) (2015-12-24) |
@@ -93,3 +93,3 @@ 'use strict'; | ||
}]); | ||
this.autocomplete.on('autocomplete:selected', this.handleSelected); | ||
this.autocomplete.on('autocomplete:selected', this.handleSelected.bind(null, this.autocomplete.autocomplete)); | ||
} | ||
@@ -132,4 +132,4 @@ | ||
key: 'handleSelected', | ||
value: function handleSelected(event, suggestion) { | ||
this.autocomplete.autocomplete.setVal(''); | ||
value: function handleSelected(input, event, suggestion) { | ||
input.setVal(''); | ||
window.location.href = suggestion.url; | ||
@@ -136,0 +136,0 @@ } |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports['default'] = '1.0.0'; | ||
exports['default'] = '1.0.1'; | ||
module.exports = exports['default']; |
@@ -24,4 +24,4 @@ --- | ||
```html | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/docsearch.js/0/docsearch.min.css" /> | ||
<script type="text/javascript" src="//cdn.jsdelivr.net/docsearch.js/0/docsearch.min.js"></script> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" /> | ||
<script type="text/javascript" src="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script> | ||
<script type="text/javascript"> | ||
@@ -28,0 +28,0 @@ docsearch({ |
{ | ||
"name": "docsearch.js", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Add an autocomplete dropdown to your documentation", | ||
@@ -5,0 +5,0 @@ "main": "dist/npm/index.js", |
@@ -58,4 +58,4 @@ # DocSearch | ||
```html | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/docsearch.js/0/docsearch.min.css" /> | ||
<script type="text/javascript" src="//cdn.jsdelivr.net/docsearch.js/0/docsearch.min.js"></script> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" /> | ||
<script type="text/javascript" src="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script> | ||
<script type="text/javascript"> | ||
@@ -62,0 +62,0 @@ docsearch({ |
@@ -61,3 +61,3 @@ import Hogan from 'hogan.js'; | ||
}]); | ||
this.autocomplete.on('autocomplete:selected', this.handleSelected); | ||
this.autocomplete.on('autocomplete:selected', this.handleSelected.bind(null, this.autocomplete.autocomplete)); | ||
} | ||
@@ -165,4 +165,4 @@ | ||
handleSelected(event, suggestion) { | ||
this.autocomplete.autocomplete.setVal(''); | ||
handleSelected(input, event, suggestion) { | ||
input.setVal(''); | ||
window.location.href = suggestion.url; | ||
@@ -169,0 +169,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export default '1.0.0'; | ||
export default '1.0.1'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9638544
61