Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bw-vm

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bw-vm - npm Package Compare versions

Comparing version 1.2.2 to 2.0.0

35

index.js

@@ -1,9 +0,1 @@

// overlap
// width
// height
// onStartAniIn
// onEndAniIn
// onStartAniOut
// onEndAniOut
function ViewManager( settings ) {

@@ -22,3 +14,3 @@

this.nContent = null;
};
}

@@ -80,7 +72,7 @@ ViewManager.prototype = {

onComplete( oldContent );
}.bind( this, this.cContent )
}.bind( this, this.cContent );
// now take out countent
if( this.cContent.aniOut )
this.cContent.aniOut( this.data , onOldOut );
if( this.cContent.animateOut )
this.cContent.animateOut( this.data , onOldOut );
else

@@ -119,3 +111,4 @@ onOldOut();

// resize the newContent if it has a resize method
newContent.resize && newContent.resize( s.width, s.height );
if( newContent.resize )
newContent.resize( s.width, s.height );

@@ -140,4 +133,4 @@ // call a callback that we're starting to animatein content

if( newContent.aniIn )
newContent.aniIn( this.data, onNewIn );
if( newContent.animateIn )
newContent.animateIn( this.data, onNewIn );
else

@@ -152,4 +145,4 @@ onNewIn();

if( oldContent.aniOut )
oldContent.aniOut( this.data, onOldOut );
if( oldContent.animateOut )
oldContent.animateOut( this.data, onOldOut );
else

@@ -160,4 +153,4 @@ onOldOut();

if( newContent.aniIn )
newContent.aniIn( this.data, onNewIn );
if( newContent.animateIn )
newContent.animateIn( this.data, onNewIn );
else

@@ -169,4 +162,4 @@ onNewIn();

// just bring new content
if( newContent.aniIn )
newContent.aniIn( this.data, onNewIn );
if( newContent.animateIn )
newContent.animateIn( this.data, onNewIn );
else

@@ -173,0 +166,0 @@ onNewIn();

2

package.json
{
"name": "bw-vm",
"version": "1.2.2",
"version": "2.0.0",
"description": "This is a view manager for bigwheel (it brings in out content)",

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

@@ -64,7 +64,7 @@ var vm = require( '../' );

aniIn: function( req, done ) {
animateIn: function( req, done ) {
switch( idxText ) {
case 1:
t.equal( this.name, 'section 1', 'section 1 aniIn' );
t.equal( this.name, 'section 1', 'section 1 animateIn' );
nextTest();

@@ -75,3 +75,3 @@ done();

case 3:
t.equal( this.name, 'section 2', 'section 2 aniIn' );
t.equal( this.name, 'section 2', 'section 2 animateIn' );
done();

@@ -82,3 +82,3 @@ nextTest();

case 4:
t.equal( this.name, 'section 3', 'section 3 aniIn' );
t.equal( this.name, 'section 3', 'section 3 animateIn' );
done();

@@ -96,7 +96,7 @@

aniOut: function( req, done ) {
animateOut: function( req, done ) {
switch( idxText ) {
case 3:
t.equal( this.name, 'section 1', 'section 1 aniOut' );
t.equal( this.name, 'section 1', 'section 1 animateOut' );
done();

@@ -106,3 +106,3 @@ break;

case 4:
t.equal( this.name, 'section 2', 'section 2 aniOut' );
t.equal( this.name, 'section 2', 'section 2 animateOut' );
done();

@@ -112,3 +112,3 @@ break;

case 5:
t.equal( this.name, 'section 3', 'section 3 aniOut' );
t.equal( this.name, 'section 3', 'section 3 animateOut' );
done();

@@ -153,3 +153,3 @@ break;

test( 'section init, aniIn, resize', function( nT ) {
test( 'section init, animateIn, resize', function( nT ) {

@@ -204,3 +204,3 @@ t = nT;

test( 'bring in section 4 without init, aniIn', function( nT ) {
test( 'bring in section 4 without init, animateIn', function( nT ) {

@@ -213,4 +213,4 @@ t = nT;

nSection.init = undefined;
nSection.aniIn = undefined;
nSection.aniOut = undefined;
nSection.animateIn = undefined;
nSection.animateOut = undefined;

@@ -223,3 +223,3 @@ manager.show( nSection );

test( 'bring in section 5 test skipping aniOut on section 4', function( nT ) {
test( 'bring in section 5 test skipping animateOut on section 4', function( nT ) {

@@ -226,0 +226,0 @@ t = nT;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc