rewrote extendwithnativecondition to not use functions in a loop as per Mr. Crockford ;)
rewrote extendwithnativecondition to not use functions in a loop as per
Mr. Crockford ;)


Former-commit-id: fecef77f8ec54accfeeba84bcc1f063e27102980 [formerly 0994ced7d76ae9ed1ff3bb1b70e977d6ce0030d5]
Former-commit-id: e305dadc87408fbb1e6366416213fc0a632530ce
andrewplummer/Sugar,andrewplummer/Sugar,romancow/Sugar,romancow/Sugar