Skip to content

Instantly share code, notes, and snippets.

@mikesherov
Created May 21, 2014 21:27
Show Gist options
  • Save mikesherov/1f38bdc8a499b47dbb40 to your computer and use it in GitHub Desktop.
Save mikesherov/1f38bdc8a499b47dbb40 to your computer and use it in GitHub Desktop.
Using grasp to upgrade jQuery on your site
// converts $.fn.live to $.on
grasp "call[callee.prop=#live][callee.object=call]" -R "\$(document.body).on({{.args:first}}, {{.callee.object.args:first}}, {{.args:last}})"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment