This is also probably a bad idea. Arrays, Strings, and other Natives are
created by the thousands on a page. You do not want to add overhead to
native instantiation.

On Mon, Jan 18, 2010 at 5:39 PM, Arian <[email protected]> wrote:

> I know... This is only a little example... I want to use it to detect
> it when you do new Event(), or new Hash() for example.
>
> On 19 jan, 02:31, Aaron Newton <[email protected]> wrote:
> > I would strongly urge you to use a Class instead of a Native. Native is
> > really intended for existing object types (like String, Function, etc).
> >
> >
> >
> > On Mon, Jan 18, 2010 at 5:22 PM, Arian <[email protected]> wrote:
> > > Hi there,
> >
> > > I have the following situation:http://mootools.net/shell/pEW9t/
> >
> > > What I want is to replace or add a callback for the initialize
> > > function of a Native.
> > > I've tried a lot and searched the source code for any clues, but it
> > > won't work how I want to.
>

Reply via email to