+1
-1
| { | ||
| "name": "paged", | ||
| "version": "0.0.2", | ||
| "version": "0.0.3", | ||
| "description": "A paged/tabbed module for the browser", | ||
@@ -5,0 +5,0 @@ "main": "paged.js", |
+8
-3
@@ -53,2 +53,3 @@ module.exports = Paged | ||
| if (!nofx) { | ||
| this.sections.not(section) | ||
@@ -58,5 +59,7 @@ .css({ position: 'absolute' }) | ||
| setTimeout(function () { | ||
| this.sections.not(section).css({ display: 'none'}) | ||
| }, this.transitionSpeed) | ||
| setTimeout($.proxy(function () { | ||
| this.sections.each($.proxy(function (i, el) { | ||
| if (i !== this.current) $(el).css({ display: 'none' }) | ||
| }, this)) | ||
| }, this), this.transitionSpeed) | ||
@@ -69,5 +72,7 @@ this.container[transitionFn]({ height: height }, 100) | ||
| } else { | ||
| this.sections.not(section).css({ position: 'absolute', display: 'none' }) | ||
| section.css({ opacity: 1, display: 'block' }) | ||
| this.container.css({ height: height }) | ||
| } | ||
@@ -74,0 +79,0 @@ |
6231
1.5%143
1.42%