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

angular-sortablejs

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-sortablejs - npm Package Compare versions

Comparing version 1.0.0-1 to 1.0.0-2

2

package.json
{
"name": "angular-sortablejs",
"version": "1.0.0-1",
"version": "1.0.0-2",
"description": "SortableJS for Angular 2+",

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

@@ -14,3 +14,10 @@ "use strict";

var index_1 = require('../index');
// Sortable
var Sortable = require('sortablejs');
// original library calls the events in unnatural order
// first the item is added, then removed from the previous array
// this is a temporary event to work this around
// as long as only one sortable takes place at a certain time
// this is enough to have a single `global` event
var onremove;
var SortablejsDirective = (function () {

@@ -43,9 +50,5 @@ function SortablejsDirective(element) {

if (this._items) {
// original library calls the events in unnatural order
// first the item is added, then removed from the previous array
// this is a temporary event to work this around
var onremove_1;
return {
onAdd: function (event) {
onremove_1 = function (item) {
onremove = function (item) {
if (_this._items instanceof forms_1.FormArray) {

@@ -69,4 +72,4 @@ _this._items.insert(event.newIndex, item);

}
onremove_1(item);
onremove_1 = null;
onremove(item);
onremove = null;
_this.proxyEvent('onRemove');

@@ -73,0 +76,0 @@ },

Sorry, the diff of this file is not supported yet

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