[sandbox.akabana]/trunk/yui/yui-core/src/main/flex/org/seasar/akabana/yui/core/event/notify.as
Parent Directory
|
Revision Log
|
Patch
| revision 1348 by e1arkw, Mon Nov 8 11:53:13 2010 JST | revision 1349 by e1arkw, Mon Nov 8 12:04:32 2010 JST | |
|---|---|---|
| # | Line 18 package org.seasar.akabana.yui.core.even | Line 18 package org.seasar.akabana.yui.core.even |
| 18 | import flash.events.Event; | import flash.events.Event; |
| 19 | import flash.events.IEventDispatcher; | import flash.events.IEventDispatcher; |
| 20 | ||
| 21 | public function notify(d:IEventDispatcher,type:String):void{ | public function notify(d:IEventDispatcher,type:String,...args):void{ |
| 22 | var n:Notification = new Notification(type); | var n:Notification; |
| 23 | ||
| 24 | if( args.length > 1 ){ | |
| 25 | n = new Notification(type,args); | |
| 26 | } else if( args.length == 1 ){ | |
| 27 | n = new Notification(type,args[0]); | |
| 28 | } else { | |
| 29 | n = new Notification(type,null); | |
| 30 | } | |
| 31 | ||
| 32 | notifyEvent(d,n); | notifyEvent(d,n); |
| 33 | } | } |
| 34 | } | } |
|
||||||||
| Repository Top ViewVC Help |
![]() |
| Powered by ViewVC |

