From ec5582cda801cbe039a72b18ae8e8ffd77746b6e Mon Sep 17 00:00:00 2001 From: Mika Tuupola Date: Tue, 29 Oct 2013 22:50:52 +0200 Subject: [PATCH] Prepare for 0.9.8. --- README.markdown | 4 ++++ bower.json | 2 +- chained.jquery.json | 2 +- jquery.chained.js | 2 +- jquery.chained.min.js | 2 +- jquery.chained.remote.min.js | 4 ++-- package.json | 2 +- 7 files changed, 11 insertions(+), 7 deletions(-) diff --git a/README.markdown b/README.markdown index f3e37c5..195c86b 100644 --- a/README.markdown +++ b/README.markdown @@ -78,6 +78,10 @@ All code licensed under the [MIT License](http://www.opensource.org/licenses/mit # Changelog +### 0.9.8 + +* Rename "values" setting to more logical "depends". + ### 0.9.7 * Removed unneeded files when installing with Bower. diff --git a/bower.json b/bower.json index 4f47251..5b150a7 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "chained", - "version": "0.9.7", + "version": "0.9.8", "homepage": "http://www.appelsiini.net/projects/chained", "authors": [ "Mika Tuupola " diff --git a/chained.jquery.json b/chained.jquery.json index a24ca14..0abfafe 100644 --- a/chained.jquery.json +++ b/chained.jquery.json @@ -1,6 +1,6 @@ { "name": "chained", - "version": "0.9.7", + "version": "0.9.8", "title": "Chained", "author": { "name": "Mika Tuupola", diff --git a/jquery.chained.js b/jquery.chained.js index ad26b7b..cc87e85 100644 --- a/jquery.chained.js +++ b/jquery.chained.js @@ -11,7 +11,7 @@ * Project home: * http://www.appelsiini.net/projects/chained * - * Version: 0.9.7 + * Version: 0.9.8 * */ diff --git a/jquery.chained.min.js b/jquery.chained.min.js index 1c54614..d355cca 100644 --- a/jquery.chained.min.js +++ b/jquery.chained.min.js @@ -1,4 +1,4 @@ /* - * Chained 0.9.7 - MIT license - Copyright 2010-2013 Mika Tuupola + * Chained 0.9.8 - MIT license - Copyright 2010-2013 Mika Tuupola */ !function(a,b){"use strict";a.fn.chained=function(c,d){return a.extend({},a.fn.chained.defaults,d),this.each(function(){var d=this,e=a(d).clone();a(c).each(function(){a(this).bind("change",function(){a(d).html(e.html());var f="";a(c).each(function(){a(":selected",this).val()&&(f+="\\"+a(":selected",this).val())}),f=f.substr(1),b.Zepto&&(f=f.replace("\\","\\\\"));var g;g=a.isArray(c)?a(c[0]).first():a(c).first();var h=a(":selected",g).val();a("option",d).each(function(){a(this).hasClass(f)||a(this).hasClass(h)||""===a(this).val()||a(this).remove()}),1===a("option",d).size()&&""===a(d).val()?a(d).attr("disabled","disabled"):a(d).removeAttr("disabled"),a(d).trigger("change")}),a("option:selected",this).length||a("option",this).first().attr("selected","selected"),a(this).trigger("change")})})},a.fn.chainedTo=a.fn.chained,a.fn.chained.defaults={}}(window.jQuery||window.Zepto,window,document); \ No newline at end of file diff --git a/jquery.chained.remote.min.js b/jquery.chained.remote.min.js index 73024e5..e512bc2 100644 --- a/jquery.chained.remote.min.js +++ b/jquery.chained.remote.min.js @@ -1,4 +1,4 @@ /* - * Chained 0.9.7 - MIT license - Copyright 2010-2013 Mika Tuupola + * Chained 0.9.8 - MIT license - Copyright 2010-2013 Mika Tuupola */ -!function(a){"use strict";a.fn.remoteChained=function(b,c,d){var e;return"object"==typeof b&&"undefined"!=typeof b.url?e=a.extend({},a.fn.remoteChained.defaults,b):(e=a.extend({},a.fn.remoteChained.defaults,d),e.parents=b,e.url=c),this.each(function(){function b(b){var d=a(":selected",c).val();a("option",c).remove();var e=[];if(a.isArray(b))e=b;else for(var f in b)b.hasOwnProperty(f)&&e.push([f,b[f]]);for(var g=0;g!==e.length;g++){var h=e[g][0],i=e[g][1];if("selected"!==h){var j=a("