Skip to content

Commit

Permalink
JShint.
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Nov 4, 2012
1 parent 005544a commit de81c0e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
10 changes: 4 additions & 6 deletions tabs/jquery.tabs.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/*! ---------------------------------------
* Tabs
* http://github.com/rstacruz/jquery-stuff
* ---------------------------------------- */
/*! jQuery.tabs (c) 2012, Rico Sta. Cruz. MIT License.
* https://github.com/rstacruz/jquery-stuff/tree/master/tabs */

// Simple tabs.
//
Expand All @@ -14,7 +12,7 @@
// active: 'active', /* Classname for active tabs/content areas. */
// activate: false /* Activate the tabs on start. Default: false */
// });
//

(function($) {
$.fn.tabbed = function(options) {
var defaults = {
Expand All @@ -24,7 +22,7 @@
activate: false
};

options || (options = {});
if (!options) options = {};
options = $.extend({}, defaults, options);

var self = $(this);
Expand Down
9 changes: 5 additions & 4 deletions toggleable/jquery.toggleable.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/*! jQuery.toggleable (c) 2012, Rico Sta. Cruz. MIT License.
* https://github.com/rstacruz/jquery-stuff/tree/master/toggleable */

// Makes a certain element a toggle-to-activate thing. Clicking the button
// (the selector defined in `using`) will toggle the 'active' class for both
// the button and the parent element.
Expand All @@ -9,12 +12,10 @@
// - `sticky` - Defaults to false.
// - `modal` - Close others when this is opened. Defaults to true.
// - `clickout` - Allow clicking away. Default to true.
//
// http://github.com/rstacruz/jquery-stuff
//

(function($) {
$.fn.toggleable = function(options) {
options || (options = {});
if (!options) options = {};

if (typeof options.modal === 'undefined') options.modal = true;
if (typeof options.clickout === 'undefined') options.clickout = true;
Expand Down

0 comments on commit de81c0e

Please sign in to comment.