Hi hamburger, I've tried your example just now, and seems to work good.
with and without -more. -- Andrea Dessì Email: nkj...@gmail.com Skype: nkjoep Blog: http://www.stealthefish.com/ LinkedIn: http://www.linkedin.com/in/andreadessi Jabber: nkj...@gmail.com Twitter: http://www.twitter.com/NKjoep On Wed, Jul 28, 2010 at 12:17, hamburger <bilidi...@web.de> 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>