Hmmm
I checked this code:
(function($) {
        $.fn.extend({
                test2: function(color) {
                        var b=$(this);
                        return b.each(function() {
                                ttt = function() { callback();}
                                callback = function(data) {
                                        b.css('color',color);
                                }
                                b.bind('click',ttt);
                        });
                },
                test1: function(color) {
                        var b=$(this);
                        return b.each(function() {
                                callback = function(data) {
                                        b.css('color',color);
                                }
                                b.bind('click',callback);
                        });
                },
        });
})(jQuery);


.test2() doesnt work
.test1() works

So whats wrong with function ttt?

Sorry but at the moment I can't put this on the net

Thanks
Michael

Reply via email to