Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static function unsubscribeAllButtonOnClick(items:Array<ContainerNode>, touchEventAction:Action2<ContainerNode, Event>) {
- if(touchEventAction == null) {
- throw new ArgumentNullException("Parameter 'touchEventAction' can't be null");
- }
- for(item in items) {
- var button:ButtonNode = cast(item, ButtonNode);
- button.eventOccured -= touchEventAction;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement