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

Fix "Similar code" issue in src/client/coding.js #11

Open
crcastle opened this issue Apr 5, 2016 · 0 comments
Open

Fix "Similar code" issue in src/client/coding.js #11

crcastle opened this issue Apr 5, 2016 · 0 comments

Comments

@crcastle
Copy link
Owner

crcastle commented Apr 5, 2016

Similar code found in 1 other location (mass = 70)

https://codeclimate.com/github/crcastle/collaborative-code-conference/src/client/coding.js#issue_57036f5330dab00001143066

  anchor.addEventListener('click', function(e) {
    e.preventDefault();
    cm.setOption('theme', classPrefix);
    document.querySelector('#theme-button-text').innerHTML = 'Theme: ' + name;
    cm.focus();
  });

and

  anchor.addEventListener('click', function(e) {
    e.preventDefault();
    cm.setOption('mode', mime);
    document.querySelector('#language-button-text').innerHTML = 'Language: ' + name;
    cm.focus();
  });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant