style/doc
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 16 Dec 2010 22:20:24 +0000 (15:20 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 16 Dec 2010 22:20:24 +0000 (15:20 -0700)
framework/Core/js/autocomplete.js
horde/js/keynavlist.js

index 6834be7..28256d1 100644 (file)
@@ -122,10 +122,12 @@ Autocompleter.Base = Class.create({
             });
 
             if (!this.knl) {
-                this.knl = new KeyNavList(this.elt, { onChoose: this.onSelect.bind(this),
-                                                        onShow: this.opts.onShow.bind(this),
-                                                     domParent: this.opts.domParent,
-                                               keydownObserver: this.opts.keydownObserver});
+                this.knl = new KeyNavList(this.elt, {
+                    onChoose: this.onSelect.bind(this),
+                    onShow: this.opts.onShow.bind(this),
+                    domParent: this.opts.domParent,
+                    keydownObserver: this.opts.keydownObserver
+                });
             }
 
             this.knl.show(c);
index cb01b76..c872c4c 100644 (file)
@@ -7,7 +7,11 @@
  * Usage:
  * ======
  * var knl = new KeyNavList(base, {
+ *     'domParent' - (Element) Specifies the parent element. Defaults to
+ *                   document.body
  *     'esc' - (boolean) Escape the displayed output?
+ *     'keydownObserver' - (Element) The element to register the keydown
+ *                         handler on. Defaults to document.
  *     'list' - (array) Array of objects with the following keys:
  *                      'l' - (label) Display data
  *                      's' - (selected) True if this entry should be selected
  *                list container element.
  *     'onShow' - (function) Called when the list is shown. Passed the
  *                list container element.
- *     'domParent' - (Element) Specifies the parent element. Defaults to
- *                   document.body
- *     'keydownObserver' - (Element) The element to register the keydown
- *                         handler on. Defaults to document.
  * });
  *
  * [base = (Element) The element to use for display positioning purposes]