Skip to content

Stop iteration in $.fn.each() when the callback returns false #632

Closed
wants to merge 2 commits into from
Commits on Nov 5, 2012
  1. @mitio

    Stop iteration in $.fn.each() when the callback returns false

    mitio committed Nov 5, 2012
    As per the documentation, the iteration in $.fn.each() should
    stop when the iteration callback returns fasle.
    
    Use Array.prototype.every() to emulate this behaviour while
    still keeping the iteration code native.
  2. @mitio

    Compact $.fn.each a bit

    mitio committed Nov 5, 2012
    It's a bit simpler now, as per this suggestion by @staabm:
    madrobby#632 (comment)
Something went wrong with that request. Please try again.