1)
el.textEl = el.getElement('.ratingText');
Storing properties directly on elements is a very bad practice. Use element
storage (el.store('property', value)).
2) when I click on a star (firefox) The error I get is that text is
undefined in this line:
error = text.split('ERROR:')[1];
3) the error you are getting is because you are passing a function to
element.removeEvent, and you must pass both a function AND the event type:
el.removeEvent(el.mouseCrap);
should be
el.removeEvent('mousemove', el.mouseCrap);
On Wed, Jul 28, 2010 at 3:17 AM, hamburger <[email protected]> wrote:
> Hello cracks,
> i have a class witch work fine with mootools-1.2.4.-core. If I add
> mootools-1.2.4.4-more i get an error message.
> (here: var bits = type.match(match);
>
> please look here: http://jsfiddle.net/2U3ma/1/
>
> any idea for help? thanks in advance.
>
> the error code in moo-1.2.4.4-more:
> /*
> ---
> script: Element.Delegation.js
> description: Extends the Element native object to include the delegate
> method for more efficient event management.
> credits:
> - "Event checking based on the work of Daniel Steigerwald. License:
> MIT-style license. Copyright: Copyright (c) 2008 Daniel Steigerwald,
> daniel.steigerwald.cz"
> license: MIT-style license
> authors:
> - Aaron Newton
> - Daniel Steigerwald
>
> requires:
> - core:1.2.4/Element.Event
> - core:1.2.4/Selectors
> - /MooTools.More
>
> provides: [Element.Delegation]
>
> ...
> */
>
> (function(addEvent, removeEvent){
>
> var match = /(.*?):relay\(([^)]+)\)$/,
> combinators = /[+>~\s]/,
> splitType = function(type){
> var bits = type.match(match);
> return !bits ? {event: type} : {
> event: bits[1],
> selector: bits[2]
> };
> },
> ...
>
>
> <script type="text/javascript" src="js/mootools-1.2.4-core-yc.js"></
> script>
> <script type="text/javascript" src="js/mootools-1.2.4.4-more.js"></
> script>
>