You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

nativescript-effects

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-effects - npm Package Compare versions

Comparing version

to
0.2.3

{
"name": "nativescript-effects",
"version": "0.2.2",
"version": "0.2.3",
"main": "tns-effects.js",

@@ -5,0 +5,0 @@ "description": "A NativeScript plugin that extend animations to include common animation scenarios.",

@@ -6,4 +6,4 @@ //nativescript-effects

var definition = require("./tns-effects");
var enums = require("ui/enums");
var Effects = {

@@ -122,5 +122,2 @@ defaultDuration : 400,

//.hide()

@@ -131,2 +128,3 @@ //.hide( [duration ] )

if (duration === void 0) { duration = 1; }
this.visibility = enums.Visibility.collapse;
return this.fadeOut(duration);

@@ -137,2 +135,3 @@ };

if (duration === void 0) { duration = 1; }
this.visibility = enums.Visibility.visible;
return this.fadeIn(duration);

@@ -143,3 +142,8 @@ };

if (duration === void 0) { duration = 1; }
return this.fadeToggle(duration);
if (this.visibility === enums.Visibility.collapse) {
return this.show(duration);
}
else {
return this.hide(duration);
}
};

@@ -146,0 +150,0 @@