Skip to content

Commit

Permalink
Whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
tuupola committed Jan 24, 2013
1 parent a612a2d commit 24949db
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions jquery.chained.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
(function($) {
"use strict";

$.fn.chained = function(parent_selector, options) {
$.fn.chained = function(parent_selector, options) {

return this.each(function() {

/* Save this to self because this changes when scope changes. */
/* Save this to self because this changes when scope changes. */
var self = this;
var backup = $(self).clone();

Expand All @@ -45,10 +45,10 @@

$("option", self).each(function() {
/* Remove unneeded items but save the default value. */
if (!$(this).hasClass(selected) &&
if (!$(this).hasClass(selected) &&
!$(this).hasClass(selected_first) && $(this).val() !== "") {
$(this).remove();
}
}
});

/* If we have only the default value disable select. */
Expand All @@ -67,7 +67,7 @@
}

/* Force updating the children. */
$(this).trigger("change");
$(this).trigger("change");

});
});
Expand Down

0 comments on commit 24949db

Please sign in to comment.