Permalink
Browse files

Upgrade details shim. Closes gh-1

  • Loading branch information...
mathiasbynens authored and rwaldron committed Jun 15, 2012
1 parent 1eca1ed commit 9541b4e2d4f3348c2a42b0fc188432ea4ea7f236
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/jquery.details.js
  2. +1 −1 readme.md
View
@@ -1,4 +1,4 @@
-/*! http://mths.be/details v0.0.5 by @mathias | includes http://mths.be/noselect v1.0.3 */
+/*! http://mths.be/details v0.0.6 by @mathias | includes http://mths.be/noselect v1.0.3 */
;(function(document, $) {
var proto = $.fn,
@@ -131,7 +131,7 @@
// Toggle the `open` and `aria-expanded` attributes and the `open` property of the `details` element and display the additional info
toggleOpen($details, $detailsSummary, $detailsNotSummary, true);
}).keyup(function(event) {
- if (32 == event.keyCode && !isOpera || 13 == event.keyCode) {
+ if (32 == event.keyCode || (13 == event.keyCode && !isOpera)) {
// Space or Enter is pressed — trigger the `click` event on the `summary` element
// Opera already seems to trigger the `click` event when Enter is pressed
event.preventDefault();
View
@@ -17,7 +17,7 @@ Tests must be run from an HTTP Server with PHP installed. You can use one of the
In order to build the tests, you'll also need [node.js](https://github.com/joyent/node) and [npm](https://github.com/isaacs/npm). Install instructions are available from the [node.js wiki](https://github.com/joyent/node/wiki/Installation).
-npm now ships with node.js, so you shouldn't have to do anything special to install it. You can check for it's presence by running:
+npm now ships with node.js, so you shouldn't have to do anything special to install it. You can check for its presence by running:
```bash
npm -v

0 comments on commit 9541b4e

Please sign in to comment.