Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache $(this) and use jQuery dom obj for dropdown #4288

Merged
merged 2 commits into from Apr 25, 2016

Conversation

pine3ree
Copy link
Contributor

  • calling $(selector) or even $(this) will create new jQuery object for each call.
  • on is the recommended method to handle events: it superseeded live and delegate since jquery v 1.7:
$(alwaysPresentWrapperElementSelector).on(events, dynamicOrNotInnerElementsSelector, handler);

@danielkerr danielkerr merged commit 995fab0 into opencart:master Apr 25, 2016
@pine3ree pine3ree deleted the patch-33 branch December 24, 2016 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants