code-dot-org/blockly — pull request #604 by Bjvanminnen (2014-05-22 22:51:41+00:00)
Title: move where we set blockly loop trap

Saw some instances of "TypeError: Cannot set property 'INFINITE_LOOP_TRAP' of undefined" popping up in new relic. I think I was setting Blockly.JavaScript.INFINITE_LOOP_TRAP at a point where Blockly was not yet guaranteed to be set yet. I moved it to afterInject and verified that things still work as they should.