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

riot-observable

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

riot-observable - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1-beta

dist/es6.observable.js

22

dist/observable.js

@@ -75,12 +75,3 @@ ;(function(window, undefined) {var observable = function(el) {

el.off(events, on)
// V8 performance optimization
// https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments
var arglen = arguments.length
var args = new Array(arglen)
for (var i = 0; i < arglen; i++) {
args[i] = arguments[i]
}
fn.apply(el, args)
fn.apply(el, arguments)
}

@@ -97,8 +88,9 @@ return el.on(events, on)

defineProperty('trigger', function(events) {
// V8 performance optimization
// https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments
var arglen = arguments.length - 1
var args = new Array(arglen)
// getting the arguments
// skipping the first one
var arglen = arguments.length - 1,
args = new Array(arglen)
for (var i = 0; i < arglen; i++) {
args[i] = arguments[i + 1] // skip first argument
args[i] = arguments[i + 1]
}

@@ -105,0 +97,0 @@

@@ -75,12 +75,3 @@ riot.observable = function(el) {

el.off(events, on)
// V8 performance optimization
// https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments
var arglen = arguments.length
var args = new Array(arglen)
for (var i = 0; i < arglen; i++) {
args[i] = arguments[i]
}
fn.apply(el, args)
fn.apply(el, arguments)
}

@@ -97,8 +88,9 @@ return el.on(events, on)

defineProperty('trigger', function(events) {
// V8 performance optimization
// https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments
var arglen = arguments.length - 1
var args = new Array(arglen)
// getting the arguments
// skipping the first one
var arglen = arguments.length - 1,
args = new Array(arglen)
for (var i = 0; i < arglen; i++) {
args[i] = arguments[i + 1] // skip first argument
args[i] = arguments[i + 1]
}

@@ -105,0 +97,0 @@

@@ -75,12 +75,3 @@ var observable = function(el) {

el.off(events, on)
// V8 performance optimization
// https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments
var arglen = arguments.length
var args = new Array(arglen)
for (var i = 0; i < arglen; i++) {
args[i] = arguments[i]
}
fn.apply(el, args)
fn.apply(el, arguments)
}

@@ -97,8 +88,9 @@ return el.on(events, on)

defineProperty('trigger', function(events) {
// V8 performance optimization
// https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments
var arglen = arguments.length - 1
var args = new Array(arglen)
// getting the arguments
// skipping the first one
var arglen = arguments.length - 1,
args = new Array(arglen)
for (var i = 0; i < arglen; i++) {
args[i] = arguments[i + 1] // skip first argument
args[i] = arguments[i + 1]
}

@@ -105,0 +97,0 @@

{
"name": "riot-observable",
"version": "2.3.0",
"version": "2.3.1-beta",
"description": "Simple script to send and receive events",

@@ -5,0 +5,0 @@ "main": "dist/observable.js",

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