live doesn't work, error tTypeError: Object [object Object] has no method live - JavaScript

Practice




Doesn't work tTypeError: Object [object Object] has no method 'live'

starting with 1.7 there was a warning that this function would be removed in version 1.9
but there is still compatibility with older versions if you download the file

jquery-migrate.js
from the official jq site

and don't forget to add before using it
jQuery.migrateMute = true;

thanks for the comment
here it is
https://github.com/jquery/jquery-migrate/


http://code.jquery.com/jquery-migrate-1.2.1.min.js

you can emulate how jquery live works

for example like this
jQuery.fn.live = function (types, data, fn) {
jQuery(this.context).on(types,this.selector,data,fn);
return this;
};

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Scripting client side JavaScript, jqvery, BackBone"

Terms: Scripting client side JavaScript, jqvery, BackBone