/*! Worf! v1.0.0 | Apache License, Version 2.0 | https://github.com/mhulse/grunt-js-boiler */!function(a,b){"use strict";function c(b){return!a.trim(b.html())}var d=b.console||{log:a.noop,warn:a.noop},e="worf",f={classOn:e+"_on",foo:"There is no honor",bar:"in attacking the weak.",wrapper:"div",onInit:a.noop,onAfterInit:a.noop,onBeforeWrapper:a.noop,onAfterWrapper:a.noop},g={init:function(b){return this.each(function(){var c,g=a(this),i=g.data(e);i||(c=a.extend(!0,{},f,a.fn[e].defaults,b,g.data(e+"Options")),g.data(e,{init:!1,settings:c,target:g}),i=g.data(e)),i.init?d.warn("jQuery.%s thinks it's already initialized on %o.",e,this):h.call(g,i)})},destroy:function(){return this.each(function(){var b=a(this),c=b.data(e);c&&(c.target.parent().is(c.settings.wrapper)&&c.target.unwrap(),c.target.removeData(e).removeClass(c.settings.classOn))})}},h=function(b){b.init=!0,b.settings.onInit.call(b.target,b),b.target.length&&!c(b.target)?(b.target.addClass(b.settings.classOn),d.log(b.settings.foo,b.settings.bar),a.fn[e].wrapper.call(b.target,b)):d.warn("jQuery.%s thinks there's a problem with your markup.",e),b.settings.onAfterInit.call(b.target,b)};a.fn[e]=function(b){return g[b]?g[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?void a.error("jQuery.%s thinks that %s doesn't exist",e,b):g.init.apply(this,arguments)},a.fn[e].wrapper=function(a){a.settings.onBeforeWrapper.call(a.target,a),a.target.wrap("<"+a.settings.wrapper+" />"),a.settings.onAfterWrapper.call(a.target,a)},a.fn[e].defaults=f}(jQuery,window);