나는 dojo 1.9 문서를 통해 declare.safeMixin()
에 관한 문서를 읽었으며 그 차이점은 lang.mixin
입니다. 여기 dojo 1.9 : annotation은 declare.safeMixin에 추가합니까?
safeMixin() is a function defined in dojo/declare. It has the same functionality as dojo/_base/lang::mixin(), but additionally it annotates all copied methods compatibly with dojo/declare. This decoration can affect how this.inherited() works in mixed-in methods.
사람이 주석이 추가됩니다 무엇을 더 예를 줄 수있는, 내가 example을 따를 수 있지만, 어디 정말 추가를 정확히 설명하지 않고있다 복사 된 각 메소드에?
명확성을 위해 상속에 대한 설명을 요구하지 않고 단지 lang.mixin
대신 declare.safeMixin()
을 사용하여 추가 한 특수 효과에 대해 구체적으로 묻는 것입니다.