jmhobbs / domain-swap

Extension to switch domains in Google Chrome without switching paths.
https://chrome.google.com/webstore/detail/domain-switcher/ngiiihlebepigjbefembddhdplmaghep
MIT License
16 stars 5 forks source link

Remove jQuery from popup.js #10

Closed mattdsteele closed 11 years ago

mattdsteele commented 11 years ago

Related to #4

I pulled out the simple stuff from popup.js into native JS code; but as I started working on options.js I think the code turned out worse (more complex and more brittle... what is the VanillaJS equivalent of $.closest?!); so I've left it as is.

A better approach might be to put some structure around the Options page using something like Angular, but that's a separate endeavor I dunno if you want to go down.