Follow-up for gh-1117 #1124

Closed
wants to merge 3 commits into
from

Projects

None yet

2 participants

@markelog
Member
markelog commented Jan 9, 2013

If median argument for jQuery.fn.append and alike methods is false-like value, subsequent arguments should not be ignored

/cc @gibson042, @dmethvin

@gibson042 gibson042 and 1 other commented on an outdated diff Jan 9, 2013
src/manipulation.js
@@ -427,7 +427,8 @@ jQuery.extend({
fragment = context.createDocumentFragment(),
nodes = [];
- while ( ( elem = elems[ i++ ] ) || elem === 0 ) {
+ for ( ; (elem = elems[ i ]) != null; i++ ) {
gibson042
gibson042 Jan 9, 2013 Member

Let's just go all the way back to for ( ; i < l; i++ ) { here.

@gibson042 gibson042 closed this in 8e6c1ba Jan 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment