New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

paged

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paged - npm Package Compare versions

Comparing version
0.0.1
to
0.0.2
+1
-1
package.json
{
"name": "paged",
"version": "0.0.1",
"version": "0.0.2",
"description": "A paged/tabbed module for the browser",

@@ -5,0 +5,0 @@ "main": "paged.js",

+19
-15

@@ -32,3 +32,3 @@ module.exports = Paged

})
this.goTo(0)
this.goTo(0, true)

@@ -42,3 +42,3 @@ return this

*/
Paged.prototype.goTo = function (index) {
Paged.prototype.goTo = function (index, nofx) {

@@ -49,4 +49,3 @@ this.emit('change', index)

var self = this
, section = this.sections.eq(index)
var section = this.sections.eq(index)
, height = section.outerHeight(true)

@@ -56,17 +55,22 @@

this.sections.not(section)
.css({ position: 'absolute' })
[transitionFn]({ opacity: 0 }, this.transitionSpeed)
if (!nofx) {
this.sections.not(section)
.css({ position: 'absolute' })
[transitionFn]({ opacity: 0 }, this.transitionSpeed)
setTimeout(function () {
self.sections.each(function (i) {
if (i !== self.current) $(this).css({ display: 'none'})
})
}, this.transitionSpeed)
setTimeout(function () {
this.sections.not(section).css({ display: 'none'})
}, this.transitionSpeed)
this.container[transitionFn]({ height: height }, 100)
this.container[transitionFn]({ height: height }, 100)
section.css({ opacity: 0, display: 'block' })
section[transitionFn]({ opacity: 1 }, this.transitionSpeed)
section.css({ opacity: 0, display: 'block' })
section[transitionFn]({ opacity: 1 }, this.transitionSpeed)
} else {
this.sections.not(section).css({ position: 'absolute', display: 'none' })
section.css({ opacity: 1, display: 'block' })
this.container.css({ height: height })
}
return this

@@ -73,0 +77,0 @@ }