Hello I have this code
$(function() {
bonsai.run(document.getElementById('movie'), {
code: function() {
var rect= new Rect(0, 0, 100, 100);
rect.on('multi:pointerdown', function(e) {
$("#dialog-form").dialog("open");
});
},
width: 500,
height: 400,
});
});
When I click on my rect I have this error :
ReferenceError: $ is not defined
How can I get a reference on jquery ?
Make sure $ variable is not over-written by Jquery variable in the core of jquery.
The order in which the script is loaded is important, run script after jQuery loads.