Skip to content

Commit

Permalink
keynavlist fade duration moved to an option
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Oct 26, 2014
1 parent 333f4ac commit a90cd45
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions framework/Core/js/keynavlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ var KeyNavList = Class.create({
this.base = $(base);

this.opts = Object.extend({
domParent: null,
fadeDuration: 0.1,
keydownObserver: document,
onChoose: Prototype.emptyFunction,
onHide: Prototype.emptyFunction,
onShow: Prototype.emptyFunction,
domParent: null,
keydownObserver: document
onShow: Prototype.emptyFunction
}, opts || {});

this.div = new Element('DIV', { className: 'KeyNavList' }).hide().insert(new Element('UL'));
Expand Down Expand Up @@ -153,7 +154,7 @@ var KeyNavList = Class.create({
}
}.bind(this),
afterSetup: this._sizeDiv.bind(this),
duration: 0.15
duration: this.opts.fadeDuration
});
}
},
Expand Down Expand Up @@ -192,7 +193,7 @@ var KeyNavList = Class.create({
if (this.div.visible()) {
this.active = false;
this.opts.onHide(this.div);
this.div.fade({ duration: 0.15 });
this.div.fade({ duration: this.opts.fadeDuration });
if (this.iefix) {
this.iefix.hide();
}
Expand Down

0 comments on commit a90cd45

Please sign in to comment.