Skip to content

Commit

Permalink
[TIMOB-13109] Allow modellisteners to specify if they want the event …
Browse files Browse the repository at this point in the history
…to bubble
  • Loading branch information
vishalduggal committed Mar 19, 2013
1 parent 45756b8 commit 1121388
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -1456,12 +1456,16 @@ public void onClick(View view)
}

public boolean fireEvent(String eventName, KrollDict data) {
return fireEvent(eventName, data, true);
}

public boolean fireEvent(String eventName, KrollDict data, boolean bubbles) {
if (data == null && additionalEventData != null) {
data = new KrollDict((HashMap)additionalEventData.clone());
} else if (additionalEventData != null) {
data.putAll(additionalEventData);
}
return proxy.fireEvent(eventName, data);
return proxy.fireEvent(eventName, data, bubbles);
}

protected void setOnLongClickListener(View view)
Expand Down

0 comments on commit 1121388

Please sign in to comment.