Sha256: 8bfc47dafe7aae07a1e666158690b452cadea1275a42ae318ac1683fc04c0eae
Contents?: true
Size: 813 Bytes
Versions: 28
Compression:
Stored size: 813 Bytes
Contents
// immutable, protected class... class com.asunit.util.EventListener extends Object { private var source:Object; private var event:String; private var scope:Object; public static var defaultEvent:String = "all" public function EventListener(evnt:String, src:Object, scp:Object) { if(src instanceof Function && !(scp instanceof Object)) { Sys.println(">> EventListener constructor may cause problems because Function reference passed without appropriate scope argument."); } source = src; scope = scp; event = (evnt == undefined || evnt == null) ? EventListener.defaultEvent : evnt; } public function getScope():Object { return scope; } public function getSource():Object { return source; } public function getEvent():String { return event; } }
Version data entries
28 entries across 28 versions & 1 rubygems