diff --git a/Gruntfile.js b/Gruntfile.js index 1c5af61..a1ca87c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -13,9 +13,7 @@ module.exports = function (grunt) { grunt.initConfig({ config: config, pkg: grunt.file.readJSON('package.json'), - banner: '/* <%= pkg.name %> - <%= pkg.version %>\n' + - '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' + - '* Copyright (c) <%= grunt.template.today("yyyy-mm-dd") %> <%= pkg.author.name %> - <%= pkg.author.url %> */\n\n', + banner: '<%= config.banner %>', autoprefixer: { single_file: { options: { diff --git a/dist/switcher.css b/dist/switcher.css index 152aaad..ea868de 100644 --- a/dist/switcher.css +++ b/dist/switcher.css @@ -1,4 +1,4 @@ -/* jquery.switcher - 1.0.0 +/* jquery.switcher - 1.0.1 * Copyright (c) 2014-07-14 Janic Beauchemin - https://github.com/djanix/ */ diff --git a/dist/switcher.js b/dist/switcher.js index 789fe17..55b326d 100644 --- a/dist/switcher.js +++ b/dist/switcher.js @@ -7,7 +7,7 @@ * Under MIT License */ -/* jquery.switcher - 1.0.0 +/* jquery.switcher - 1.0.1 * Copyright (c) 2014-07-11 Janic Beauchemin - https://github.com/djanix/ */ ;(function ($, window, document, undefined) { diff --git a/dist/switcher.min.css b/dist/switcher.min.css index 5342848..a100b8f 100644 --- a/dist/switcher.min.css +++ b/dist/switcher.min.css @@ -1,4 +1,4 @@ -/* jquery.switcher - 1.0.0 +/* jquery.switcher - 1.0.1 * Copyright (c) 2014-07-14 Janic Beauchemin - https://github.com/djanix/ */ diff --git a/dist/switcher.min.js b/dist/switcher.min.js index 1d00a63..67147ab 100644 --- a/dist/switcher.min.js +++ b/dist/switcher.min.js @@ -1,4 +1,4 @@ -/* jquery.switcher - 1.0.0 +/* jquery.switcher - 1.0.1 * Copyright (c) 2014-07-14 Janic Beauchemin - https://github.com/djanix/ */ !function(a){function b(b,e){this.element=b,this.settings=a.extend({},d,a(b).data(),e),this._defaults=d,this._name=c,this.init()}var c="switcher",d={"class":"switcher",name:"switch",selected:!1,language:"en",disabled:!1,copy:{en:{yes:"yes",no:"no"},fr:{yes:"oui",no:"non"}}};a.extend(b.prototype,{init:function(){this.buildHtml(this.element,this.settings),this.bindEvents(this.element,this.settings)},bindEvents:function(b,c){if(!c.disabled){var d=this,e=a(b).find("input");a(b).on("click",function(){d.setValue(!e.prop("checked"))})}},buildHtml:function(b,c){var d=this,e=a(b);e.addClass(c.class),e.html('