Example #1
0
 public void unbind(String events, Function f) {
   for (EventName ev : EventName.split(events)) {
     SpecialEvent hook = special.get(ev.eventName);
     boolean unbind = hook == null || hook.tearDown(element) == false;
     if (unbind) {
       unbind(Event.getTypeInt(ev.eventName), ev.nameSpace, ev.eventName, f);
     }
     if (hook != null) {
       hook.remove(element, ev.eventName, ev.nameSpace, f);
     }
   }
 }
Example #2
0
 public void die(String events, String cssSelector) {
   for (EventName ev : EventName.split(events)) {
     SpecialEvent hook = special.get(ev.eventName);
     boolean unbind = hook == null || hook.tearDown(element) == false;
     if (unbind) {
       die(Event.getTypeInt(ev.eventName), ev.nameSpace, ev.eventName, cssSelector);
     }
     if (hook != null) {
       hook.remove(element, ev.eventName, ev.nameSpace, null);
     }
   }
 }