Skip to content

Commit

Permalink
Prevent Settings being redefined when 'start' argument is passed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Cousins committed Apr 16, 2015
1 parent da8b74e commit 0ecab4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.magiccolumns.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
return this;
};

settings = $.extend({}, $.fn.magiccolumns.defaults, ($.isPlainObject(options) ? options : {}));
settings = settings || $.extend({}, $.fn.magiccolumns.defaults, ($.isPlainObject(options) ? options : {}));

if ($table.data('stopped') && options!='start') {
console.log('.magiccolumns stopped, pass "start" to enable.');
Expand Down Expand Up @@ -74,7 +74,7 @@
hideClass: 'magiccolumns-hidden'
};

var settings = {};
var settings;

var update = function(table) {

Expand Down

0 comments on commit 0ecab4b

Please sign in to comment.