/*! jquery-classes - v0.1.0 - 2014-06-24 * https://github.com/radkodinev/jquery-classes * Copyright (c) 2014 Radko Dinev; Licensed MIT */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){a.fn.classes=function(a){var b=this;return 0===arguments.length?b[0].className:("string"==typeof a&&a.split(/\s+/).forEach(function(a){if(0!==a.length){var c=a.charAt(0),d=a.slice(1);switch(c){case"+":b.addClass(d);break;case"-":b.removeClass(d);break;case"~":b.toggleClass(d);break;default:throw new Error('Could not apply class change ["'+a+'"]')}}}),this)}});