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.4.1 to 2.4.2

2

dist/es6.observable.js

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

for (var i = 0, fn; fn = fns[i]; ++i) {
if (fn.busy) return
if (fn.busy) continue
fn.busy = 1

@@ -136,0 +136,0 @@ if (!ns || fn.ns == ns) fn.apply(el, fn.typed ? [name].concat(args) : args)

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

for (var i = 0, fn; fn = fns[i]; ++i) {
if (fn.busy) return
if (fn.busy) continue
fn.busy = 1

@@ -136,0 +136,0 @@ if (!ns || fn.ns == ns) fn.apply(el, fn.typed ? [name].concat(args) : args)

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

for (var i = 0, fn; fn = fns[i]; ++i) {
if (fn.busy) return
if (fn.busy) continue
fn.busy = 1

@@ -136,0 +136,0 @@ if (!ns || fn.ns == ns) fn.apply(el, fn.typed ? [name].concat(args) : args)

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

for (var i = 0, fn; fn = fns[i]; ++i) {
if (fn.busy) return
if (fn.busy) continue
fn.busy = 1

@@ -136,0 +136,0 @@ if (!ns || fn.ns == ns) fn.apply(el, fn.typed ? [name].concat(args) : args)

{
"name": "riot-observable",
"version": "2.4.1",
"version": "2.4.2",
"description": "Simple script to send and receive events",

@@ -26,3 +26,3 @@ "main": "dist/observable.js",

"coveralls": "^2.11.9",
"eslint": "^2.7.0",
"eslint": "^2.8.0",
"expect.js": "^0.3.1",

@@ -29,0 +29,0 @@ "karma": "^0.13.22",

@@ -311,2 +311,21 @@ /*

it('Run the other callbacks even when one of them has the "busy" flag set to "true"', function() {
function fn() {
counter ++
}
function fn2() {
counter ++
}
fn.busy = 1
el.on('foo', fn).on('foo', fn2)
el.trigger('foo')
expect(counter).to.be(1)
})
it('should not throw internal error', function() {

@@ -313,0 +332,0 @@

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