quirkey / sammy

Sammy is a tiny javascript framework built on top of jQuery, It's RESTful Evented Javascript.
http://sammyjs.org
MIT License
2.99k stars 384 forks source link

Update from Sammy 0.7.4 to 0.7.5 causes jquery ui datepicker to route when changing month. #242

Open Sopkillen opened 9 years ago

Sopkillen commented 9 years ago

Default behavior of the a tag used for month is not suppressed after upgrade.

Affected part in jquery ui seems to be: ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ).apply( matched.elem, args );

if ( ret !== undefined ) { if ( (event.result = ret) === false ) { event.preventDefault(); event.stopPropagation(); } }

Those two functions runs in 0.7.4 but not in 0.7.5.

You can see in this fiddle that sammys routing is triggered by month switching in 0.7.5. http://jsfiddle.net/tj5bhxLm/#hello