Permalink
Browse files

Fix a bug in tab.js

  • Loading branch information...
1 parent 33f45ed commit 85ff7dd3d71aa00ebc2ce36da80ebc5ec189c7cc @realityking realityking committed Nov 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 media/system/js/tabs.js
@@ -49,7 +49,7 @@ var JTabs = new Class({
this.options.display = Cookie.read(this.storageName);
}
}
- if (this.options.display === null) {
+ if (this.options.display === null || this.options.display === undefined) {
this.options.display = 0;
}
this.options.display = this.options.display.toInt().limit(0, this.titles.length-1);

0 comments on commit 85ff7dd

Please sign in to comment.