Skip to content

Fix the mobile menu problems and clean up js code. #276

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

Merged
merged 6 commits into from
Mar 17, 2015
Merged

Fix the mobile menu problems and clean up js code. #276

merged 6 commits into from
Mar 17, 2015

Conversation

fediev
Copy link
Contributor

@fediev fediev commented Mar 10, 2015

  • Fix the problem that show menu click does not work after the first click.
  • Clean up indentation, trailing spaces and revise some codes for clean coding style.
  • Remove unnecessary codes and jQuery.browser.mobile plugin.

fediev added 6 commits March 11, 2015 03:37
In the event handler, 'this' is not a jquery object, but a DOM object.
Instead of using $(this) to fix this problem, $mainNav is used
because it is already created and no need to be re-wrapped
as jquery object.

$varname style is used for preventing this type of problem.
in this code, 'this' in the scope is correct this.
no need to use 'that'
css handling is done by css media query
Mobile device checking is done by css media query.
jQuery.browser.mobile plugin is not needed any more.
@peterjwest
Copy link
Collaborator

Looks good, thanks!

peterjwest added a commit that referenced this pull request Mar 17, 2015
Fix the mobile menu problems and clean up js code.
@peterjwest peterjwest merged commit bb42e14 into BonsaiDen:master Mar 17, 2015
@fediev fediev mentioned this pull request Mar 27, 2015
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.

2 participants