I always use ===.  This code was ported from google's blockly, but this does seem like somewhere that using == could get you unexpected results.  I will change this.