tcorral / Hydra.js

Create a scalable, maintainable and module oriented system using Hydra.js
http://tcorral.github.com/Hydra.js
MIT License
102 stars 12 forks source link

Browser crash when sending jquery object in an event #30

Closed ajimix closed 10 years ago

ajimix commented 10 years ago

In version 3.3.2 when creating an event with a jQuery object, the browser (only tested in Chrome), crashes.

Apparently the problem is with a infinite loop Hydra does trying to clone the jquery object.

oBus.publish( 'interface', 'remove:button', {
    button: $( '#test-button' )
} );

This code worked perfectly in earlier Hydra versions.

tcorral commented 10 years ago

Fixed in version 3.4.1

ajimix commented 10 years ago

Please tag the branch so it can be fetched with bower :)

tcorral commented 10 years ago

Done. :)