fixed issue with double declaration of parent_closed

@maximeprades 

fixed a small JSHINT issue, should merge this. I tested this branch and everything works as it should.