makeup-active-descendant
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -22,2 +22,3 @@ 'use strict'; | ||
function onModelMutation() { | ||
var options = this._options; | ||
var modelIndex = this._navigationEmitter.model.index; | ||
@@ -29,5 +30,5 @@ | ||
if (index !== modelIndex) { | ||
item.classList.remove(this._options.activeDescendantClassName); | ||
item.classList.remove(options.activeDescendantClassName); | ||
} else { | ||
item.classList.add(this._options.activeDescendantClassName); | ||
item.classList.add(options.activeDescendantClassName); | ||
} | ||
@@ -34,0 +35,0 @@ }); |
{ | ||
"name": "makeup-active-descendant", | ||
"description": "Implements ARIA active descendant keyboard navigation", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"main": "index.js", | ||
@@ -51,3 +51,3 @@ "repository": "https://github.com/makeup-js/makeup-active-descendant.git", | ||
"dependencies": { | ||
"makeup-navigation-emitter": "~0.1.1", | ||
"makeup-navigation-emitter": "~0.1.2", | ||
"makeup-next-id": "~0.0.1" | ||
@@ -54,0 +54,0 @@ }, |
Sorry, the diff of this file is not supported yet
173165
118