Diagram.prototype.getActor() function,the 'for in' shouldn't be used to iterater Array(in this case,the actors).