riot-observable
Advanced tools
Comparing version 2.4.1 to 2.4.2
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57011
1100