Skip to content

Commit a5d7f4d

Browse files
committed
bugfix for config
1 parent f89b4f9 commit a5d7f4d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ function outerHeight(el) {
7575
*
7676
*/
7777
function getActivateDealy(config) {
78+
config = config || {};
7879
var menu = React.findDOMNode(this);
7980
var menuOffset = offset(menu);
8081

@@ -199,7 +200,7 @@ function possiblyActivate(rowIdentifier, handler, config) {
199200
if (delay) {
200201
var self = this;
201202
this.__reactMenuAimTimer = setTimeout(function(){
202-
possiblyActivate.call(self, rowIdentifier, handler);
203+
possiblyActivate.call(self, rowIdentifier, handler, config);
203204
}, delay);
204205
}
205206
else {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-menu-aim",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "A React mixin version of Amazon's jQuery-menu-vim plugin",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)