Skip to content

Instantly share code, notes, and snippets.

@stevepond
Created January 16, 2013 17:41
Show Gist options
  • Select an option

  • Save stevepond/4549095 to your computer and use it in GitHub Desktop.

Select an option

Save stevepond/4549095 to your computer and use it in GitHub Desktop.
aop for any method
jQuery.aop.before( {target: thresholdObject, method: '^.'},
function() {
console.log('to', arguments);
}
);
jQuery.aop.before( {target: window, method: '^.'},
function() {
console.log('window', arguments);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment