craftyjs/Crafty — pull request #355 by jmwohl (2012-10-01 20:39:03+00:00)
Title: When autoPause setting is true, window blur handler should check Crafty is not already paused before calling Crafty.pause().

Because the game might be in a paused state before the blur occurs, the window blur event handler should check that the Crafty is in fact paused before calling pause(). An alternative would be to add the boolean param to the call to pause().