> If livequery is included it is used automatically. You don't need to
> use $().livequery()just the normal $().attach and its all taken care
> of for you.
> On Mon, Apr 21, 2008 at 12:40 PM, Alan <alan.lar...@gmail.com> wrote:
> > Should I be able to attach behaviour classes using LiveQuery?
> > Given
> > Hover = $.klass({
> > initialize: function(hoverClass) {
> > this.hoverClass= hoverClass;
> > },
> > onmouseover: function() {
> > this.element.addClass(this.hoverClass);
> > },
> > onmouseout: function() {
> > this.element.removeClass(this.hoverClass);
> > }
> > });
> > this causes the error: this.initializehas no properties Source file:
> > lowpro.jquery.js Line: 56
> > jQuery(function($) {
> > $('#an-element').livequery(Hover);
> > });
> > Whereas this would appear to work:
> > jQuery(function($) {
> > $('#an-element').livequery("onmouseover", function() {});
> > });
> > LiveQuery 1.0.2, jQuery 1.2.3, LowPro for jQuery from Dan's current
> > github.
> --
> Dan Webbhttp://www.danwebb.net
> aim: danwrong123
> skype: danwrong
Right you are. That was my original understanding but when it didn't
work I figured the livequery call was still required. Of course the
names ... Sigh.