Short-circuit for Element#down() without arguments #61

Merged
merged 1 commit into from Sep 1, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −0
Split
View
@@ -1775,6 +1775,7 @@
* // -> undefined
**/
function down(element, expression, index) {
+ if (arguments.length === 1) return firstDescendant(element);
element = $(element), expression = expression || 0, index = index || 0;
if (Object.isNumber(expression))