diff --git a/.jshintrc b/.jshintrc index dbc2529..ea0135e 100644 --- a/.jshintrc +++ b/.jshintrc @@ -11,6 +11,5 @@ "unused": true, "boss": true, "eqnull": true, - "node": true, - "es5": true + "node": true } diff --git a/bower.json b/bower.json index 2bb339a..90ee94b 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "jquery-slugify", - "version": "1.2.0", + "version": "1.2.1", "homepage": "https://github.com/madflow/jquery-slugify", "authors": [ "madflow" diff --git a/dist/slugify.js b/dist/slugify.js index 27a712a..c89eb43 100644 --- a/dist/slugify.js +++ b/dist/slugify.js @@ -1,5 +1,5 @@ -/*! jquery-slugify - v1.1.0 - 2015-04-19 -* Copyright (c) 2015 madflow; Licensed MIT */ +/*! jquery-slugify - v1.2.1 - 2015-08-02 +* Copyright (c) 2015 madflow; Licensed */ ;(function($) { $.fn.slugify = function(source, options) { diff --git a/dist/slugify.min.js b/dist/slugify.min.js index 8581772..fa31c8d 100644 --- a/dist/slugify.min.js +++ b/dist/slugify.min.js @@ -1,3 +1,3 @@ -/*! jquery-slugify - v1.1.0 - 2015-04-19 -* Copyright (c) 2015 madflow; Licensed MIT */ -(function(n){n.fn.slugify=function(u,t){return this.each(function(){var l=n(this),o=n(u);l.on("keyup change",function(){""!==l.val()&&void 0!==l.val()?l.data("locked",!0):l.data("locked",!1)}),o.on("keyup change",function(){!0!==l.data("locked")&&(l.is("input")||l.is("textarea")?l.val(n.slugify(o.val(),t)):l.text(n.slugify(o.val(),t)))})})},n.slugify=function(u,t){return t=n.extend({},n.slugify.options,t),t.lang=t.lang||n("html").prop("lang"),"function"==typeof t.preSlug&&(u=t.preSlug(u)),u=t.slugFunc(u,t),"function"==typeof t.postSlug&&(u=t.postSlug(u)),u},n.slugify.options={preSlug:null,postSlug:null,slugFunc:function(n,u){return window.getSlug(n,u)}}})(jQuery); \ No newline at end of file +/*! jquery-slugify - v1.2.1 - 2015-08-02 +* Copyright (c) 2015 madflow; Licensed */ +!function(a){a.fn.slugify=function(b,c){return this.each(function(){var d=a(this),e=a(b);d.on("keyup change",function(){""!==d.val()&&void 0!==d.val()?d.data("locked",!0):d.data("locked",!1)}),e.on("keyup change",function(){!0!==d.data("locked")&&(d.is("input")||d.is("textarea")?d.val(a.slugify(e.val(),c)):d.text(a.slugify(e.val(),c)))})})},a.slugify=function(b,c){return c=a.extend({},a.slugify.options,c),c.lang=c.lang||a("html").prop("lang"),"function"==typeof c.preSlug&&(b=c.preSlug(b)),b=c.slugFunc(b,c),"function"==typeof c.postSlug&&(b=c.postSlug(b)),b},a.slugify.options={preSlug:null,postSlug:null,slugFunc:function(a,b){return window.getSlug(a,b)}}}(jQuery); \ No newline at end of file diff --git a/package.json b/package.json index 5819a9f..2d1d314 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "jquery-slugify", "filename": "slugify", "description": "Just another another (another) url slug plugin for jQuery", - "version": "1.2.0", + "version": "1.2.1", "main": "dist/slugify.min.js", "author": { "name": "madflow", @@ -27,13 +27,13 @@ "devDependencies": { "connect": "~2.27.1", "grunt": "~0.4.5", - "grunt-contrib-clean": "~0.4.0", - "grunt-contrib-concat": "~0.1.2", - "grunt-contrib-connect": "~0.9.0", - "grunt-contrib-jshint": "~0.1.1", - "grunt-contrib-qunit": "~0.1.1", - "grunt-contrib-uglify": "~0.1.1", - "grunt-contrib-watch": "~0.2.0" + "grunt-contrib-clean": "~0.6.0", + "grunt-contrib-concat": "~0.5.1", + "grunt-contrib-connect": "~0.11.1", + "grunt-contrib-jshint": "~0.11.0", + "grunt-contrib-qunit": "~0.7.0", + "grunt-contrib-uglify": "~0.9.1", + "grunt-contrib-watch": "~0.6.1" }, "dependencies": { "speakingurl": "^5.0.1"