Hi! In my class I want to delay the execution of a method called as an
event listener of Assets.image's  onLoad event. I can't figure out
how..

                this.image = Asset.image(image, {
                         'class': this.options['class'],
                         'onLoad': (function(){ this.inject() }).delay(500,this)
                });

                this.image = Asset.image(image, {
                         'class': this.options['class'],
                         'onLoad': this.inject.delay(500)
                });

                this.image = Asset.image(image, {
                         'class': this.options['class'],
                         'onLoad': this.inject.delay(500,this)
                });

They all give me h.delay is not a function - mootools.js Row: 602

How should I solve?



Reply via email to