javascript - I get this message "Object [object Object] has no method 'on' -


this question has answer here:

i message:

"object [object object] has no method 'on' "

to code

$(window).on('resize', function () {     self.setdimensions(); }); 

what can do? have jquery 1.9...

make sure use @ least jquery version 1.7

prior 1.7, can replace .on() .bind() (if you're not using event delegation).

the best upgrade lastest jquery version - 1.9 atm.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -