Gh408 - actions defined per node type

#408 
sorry, I didn't see you changed the code. the previous solution, with only if (this.ID ==null ) didn't work. why is <code>if (this.hasOwnProperty("ID") && this.ID != null)</code> wrong?