소스 검색

Event API in class doc

Herbert Vojčík 9 년 전
부모
커밋
fc73cfdec5
2개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 0
      src/DOMite.js
  2. 8 1
      src/DOMite.st

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
src/DOMite.js


+ 8 - 1
src/DOMite.st

@@ -54,7 +54,14 @@ It is not presumed one would use `setToXxx`
 to actually move around in a single instance.
 It is envisioned this API will be used mostly
 in combination with `copy`, like
-`afterMe := self copy setToAfter`.!
+`afterMe := self copy setToAfter`.
+
+Event API:
+
+ - `aDomite on: aString bind: [ :ev | ... ]` binds a block to process an event.
+ - `aDomite off: aString unbind: aBlock` unbinds the block from processing an event.
+ - `aDomite fire: aString [detail: anObject]` triggers a CustomEvent with specified type and, optionally, a detail object.
+ - `aDomite fireEvent: anEvent` triggers existing DOM Event object!
 
 !Domite methodsFor: 'accessing'!
 

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.