From a7f05ee8b57f26713bdc72e8e095731d98e27f99 Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Wed, 23 Dec 2009 05:52:51 +0100 Subject: [PATCH] doc: Fix a typo in Prototype.Selector.find which prevented proper documentation parsing. Add a default value for the index argument. --- src/dom/selector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dom/selector.js b/src/dom/selector.js index c327603..397f45f 100644 --- a/src/dom/selector.js +++ b/src/dom/selector.js @@ -42,10 +42,10 @@ window.$$ = function() { // Implementation provided by selector engine. /** - * Prototype.Selector.find(elements, expression[, index]) -> Element + * Prototype.Selector.find(elements, expression[, index = 0]) -> Element * - elements (Enumerable): a collection of DOM elements. * - expression (String): A CSS selector. - # - index: Numeric index of the match to return, or 0 if omitted. + * - index: Numeric index of the match to return, defaults to 0. * * Filters the given collection of elements with `expression` and returns the * first matching element (or the `index`th matching element if `index` is