javascript - Uncaught Type Error: Cannot call method 'push' undefined in jquery-1.5.1.min.js -


i getting error message

uncaught type error: cannot call method 'push' undefined in jquery-1.5.1.min.js 

here code

$(document).ready(function () {     setdrawingcanvascoords();     js_c_drawing = new fabric.canvas('c_drawing');     js_c_drawing.calcoffset();     fabric.instances.push(js_c_drawing);   }); 

what doing wrong in above code can please me

do checking:

 if( typeof fabric.instances != "undefined" )  fabric.instances.push(js_c_drawing); 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -