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

angular-transit

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

angular-transit - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

108

angular.transit.js

@@ -13,37 +13,41 @@ if ($) { window.$ = $; } else if (jQuery) { window.$ = jQuery };

var el = $($element[0]);
angular.element(document).ready(function() {
$attrs.$observe('slide', function(val) {
var el = $($element[0]);
var ms = 500;
var delay = 0;
$attrs.$observe('slide', function(val) {
if (val.indexOf(' ') != -1) {
var ms = 500;
var delay = 0;
var arr = val.split(' ');
if (val.indexOf(' ') != -1) {
var first = true;
var arr = val.split(' ');
arr.map(function(arrv) {
if (first == true) {
val = arrv;
first = false;
}
var first = true;
arrv = arrv.split(':');
arr.map(function(arrv) {
if (first == true) {
val = arrv;
first = false;
}
if (arrv[0] == 'ms') {
ms = parseInt(arrv[1]);
} else {
delay = parseInt(arrv[1]);
}
})
arrv = arrv.split(':');
}
if (arrv[0] == 'ms') {
ms = parseInt(arrv[1]);
} else {
delay = parseInt(arrv[1]);
}
})
if (val == "true" || val == true) {
el.delay(delay).slideDown(ms);
} else {
el.delay(delay).slideUp(ms);
}
}
if (val == "true" || val == true) {
el.delay(delay).slideDown(ms);
} else if (val == "false" || val == false) {
el.delay(delay).slideUp(ms);
}
})
})

@@ -63,38 +67,42 @@

var el = $($element[0]);
angular.element(document).ready(function() {
$attrs.$observe('fade', function(val) {
var el = $($element[0]);
var ms = 500;
var delay = 0;
$attrs.$observe('fade', function(val) {
if (val.indexOf(' ') != -1) {
var ms = 500;
var delay = 0;
var arr = val.split(' ');
if (val.indexOf(' ') != -1) {
var first = true;
var arr = val.split(' ');
arr.map(function(arrv) {
var first = true;
if (first == true) {
val = arrv;
first = false;
}
arr.map(function(arrv) {
arrv = arrv.split(':');
if (first == true) {
val = arrv;
first = false;
}
if (arrv[0] == 'ms') {
ms = parseInt(arrv[1]);
} else {
delay = parseInt(arrv[1]);
}
})
arrv = arrv.split(':');
}
if (arrv[0] == 'ms') {
ms = parseInt(arrv[1]);
} else {
delay = parseInt(arrv[1]);
}
})
if (val == "true" || val == true) {
el.delay(delay).fadeIn(ms);
} else {
el.delay(delay).fadeOut(ms);
}
}
if (val == "true" || val == true) {
el.delay(delay).fadeIn(ms);
} else if (val == "false" || val == false){
el.delay(delay).fadeOut(ms);
}
})
})

@@ -101,0 +109,0 @@

@@ -11,37 +11,41 @@ (function(window, $, angular, undefined) {'use strict';

var el = $($element[0]);
angular.element(document).ready(function() {
$attrs.$observe('slide', function(val) {
var el = $($element[0]);
var ms = 500;
var delay = 0;
$attrs.$observe('slide', function(val) {
if (val.indexOf(' ') != -1) {
var ms = 500;
var delay = 0;
var arr = val.split(' ');
if (val.indexOf(' ') != -1) {
var first = true;
var arr = val.split(' ');
arr.map(function(arrv) {
if (first == true) {
val = arrv;
first = false;
}
var first = true;
arrv = arrv.split(':');
arr.map(function(arrv) {
if (first == true) {
val = arrv;
first = false;
}
if (arrv[0] == 'ms') {
ms = parseInt(arrv[1]);
} else {
delay = parseInt(arrv[1]);
}
})
arrv = arrv.split(':');
}
if (arrv[0] == 'ms') {
ms = parseInt(arrv[1]);
} else {
delay = parseInt(arrv[1]);
}
})
if (val == "true" || val == true) {
el.delay(delay).slideDown(ms);
} else {
el.delay(delay).slideUp(ms);
}
}
if (val == "true" || val == true) {
el.delay(delay).slideDown(ms);
} else if (val == "false" || val == false) {
el.delay(delay).slideUp(ms);
}
})
})

@@ -61,38 +65,42 @@

var el = $($element[0]);
angular.element(document).ready(function() {
$attrs.$observe('fade', function(val) {
var el = $($element[0]);
var ms = 500;
var delay = 0;
$attrs.$observe('fade', function(val) {
if (val.indexOf(' ') != -1) {
var ms = 500;
var delay = 0;
var arr = val.split(' ');
if (val.indexOf(' ') != -1) {
var first = true;
var arr = val.split(' ');
arr.map(function(arrv) {
var first = true;
if (first == true) {
val = arrv;
first = false;
}
arr.map(function(arrv) {
arrv = arrv.split(':');
if (first == true) {
val = arrv;
first = false;
}
if (arrv[0] == 'ms') {
ms = parseInt(arrv[1]);
} else {
delay = parseInt(arrv[1]);
}
})
arrv = arrv.split(':');
}
if (arrv[0] == 'ms') {
ms = parseInt(arrv[1]);
} else {
delay = parseInt(arrv[1]);
}
})
if (val == "true" || val == true) {
el.delay(delay).fadeIn(ms);
} else {
el.delay(delay).fadeOut(ms);
}
}
if (val == "true" || val == true) {
el.delay(delay).fadeIn(ms);
} else if (val == "false" || val == false){
el.delay(delay).fadeOut(ms);
}
})
})

@@ -108,2 +116,3 @@

module.exports = 'angularTransit';
{
"name": "angular-transit",
"version": "1.0.3",
"version": "1.0.4",
"description": "Simple transitions for your Angular application using jQuery transitions",

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

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