mootools / mootools-core

MooTools Core Repository
https://mootools.net
2.65k stars 507 forks source link

Types/Function: Remove unnecessary dependency on Types/Array in 1.2compat block. #2740

Closed timwienk closed 8 years ago

timwienk commented 8 years ago

The 1.2compat function Function.create uses another 1.2compat function Array.extend. Because of this, Types/Function depends on Types/Array (even though this isn't noted in the file header), while this is not really necessary.

Replaced the [event].extend(args) call with an args.unshift(event) call instead.