2012-12-24 4 views

답변

2

나는 당신이 비교하는 대신 instanceof을 사용하려고한다고 생각합니다.

if (ImageActionButton instanceof ActionButton) { 
    alert("ImageActionButton prototype is not ActionButton!"); 
} 
+0

죄송합니다. 그러나 이것은 작동하지 않습니다. 나는 ActionButton이 prototypal chain에서 발견 될 수 없기 때문에 그것이라고 믿습니다. 그래서 나는 당혹 스럽습니다. 감사! –

관련 문제