caleb531/jcanvas — Issue #7: document on ready
Author: rhyudek1
Created: 2012-01-25 21:18:57+00:00
State: open

if i use

$(document).ready(function(){

}); // works fine

------
but if i use

$(document).on('ready', function(){

});

ERROR:
Uncaught TypeError: Cannot read property 'left' of null (jcanvas.js:1101)
event.offsetX = event.pageX - offset.left;