Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Haxe 0.37 KB | None | 0 0
  1. public static function unsubscribeAllButtonOnClick(items:Array<ContainerNode>, touchEventAction:Action2<ContainerNode, Event>) {
  2.         if(touchEventAction == null) {
  3.             throw new ArgumentNullException("Parameter 'touchEventAction' can't be null");
  4.         }
  5.         for(item in items) {
  6.             var button:ButtonNode = cast(item, ButtonNode);
  7.             button.eventOccured -= touchEventAction;
  8.         }
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement