jejacks0n/mercury — Issue #121: Event problems
Author: cthree
Created: 2012-01-06 14:38:22+00:00
State: open

I'm having issues with ready events, I'm not sure if this is a documentation problem or something I'm doing stupidly.

I added these to the bottom of the mercury.js file and the event is never triggered:

$(window).on('mercury:ready', function() { alert("$");});

jQuery(window).on('mercury:ready', function() { alert("jQuery");});

function onMercuryReady() { alert("onMercuryReady"); }

The editor bit is working, just not the events so far as I can tell. I'm not sure how to debug JS events but I'll keep trying.