mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-30 13:19:11 +02:00
8 lines
163 B
ActionScript
8 lines
163 B
ActionScript
|
class Delegate
|
||
|
{
|
||
|
static function create(obj:Object, func:Function):Function
|
||
|
{
|
||
|
return function() { return func.apply(obj, arguments); };
|
||
|
}
|
||
|
|
||
|
}
|