Im not using the Assets stuff or new Element(). The images are throughout a
website which i am migrating to have all the images and stuff in the cloud.
There is a syncing process running to syn all the images and what i am
wanting to do is if the image doesn't load to assume it has not been sync'ed
and load the local copy of the image

 

From: Aaron Newton [mailto:anut...@gmail.com] 
Sent: Friday, 13 January 2012 7:42 PM
To: mootools-users@googlegroups.com
Subject: Re: [Moo] image loading

 

new Element('img', {

  events: {

    error: fn

  }

});

 

On Fri, Jan 13, 2012 at 12:34 AM, Sanford Whiteman <sa...@figureone.com>
wrote:

> So can i do something like

> Element.implement({
>         "onerror" : function () {}
>         });

No, that won't work. You have to use events. What you're doing here is
hanging  a  function  off  the element but it's not in DOMland the way
you're thinking (it's not the same as img.onerror=).

-- S.

 

Reply via email to