Skip to content

Instantly share code, notes, and snippets.

@jimsynz
jimsynz / 00_original.js
Last active August 29, 2015 14:02
An exercise in refactoring horrible procedural JavaScript. Please don't be this person.
/*
* This is a JS file from a library that our client wanted us to use. It included a dependency on a JS lib called `classie` which is
* used for adding and removing HTML classes to elements. The project already includes jQuery.
*/
(function() {
$(document).ready(function() {