scribe-editor
Advanced tools
Comparing version 1.3.4 to 1.3.5
{ | ||
"name": "scribe", | ||
"dependencies": { | ||
"lodash-amd": "2.4.1", | ||
"lodash-amd": "3.5.0", | ||
"immutable" : "3.6.2" | ||
@@ -6,0 +6,0 @@ }, |
@@ -0,1 +1,5 @@ | ||
# 1.3.5 | ||
Fixes `event-emitter` off behaviour when un-binding events | ||
# 1.3.4 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "scribe-editor", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"main": "src/scribe.js", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
define([ | ||
'lodash-amd/modern/objects/defaults' | ||
'lodash-amd/modern/object/defaults' | ||
], function (defaults) { | ||
@@ -4,0 +4,0 @@ |
define([ | ||
'lodash-amd/modern/arrays/flatten', | ||
'lodash-amd/modern/collections/toArray', | ||
'lodash-amd/modern/array/flatten', | ||
'lodash-amd/modern/lang/toArray', | ||
'./element', | ||
@@ -29,3 +29,3 @@ './node' | ||
var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; | ||
// Flag to avoid running recursively | ||
@@ -32,0 +32,0 @@ var runningPostMutation = false; |
@@ -1,2 +0,2 @@ | ||
define(['lodash-amd/modern/collections/contains'], function (contains) { | ||
define(['lodash-amd/modern/collection/contains'], function (contains) { | ||
@@ -3,0 +3,0 @@ 'use strict'; |
@@ -1,2 +0,2 @@ | ||
define(['lodash-amd/modern/arrays/pull', | ||
define(['lodash-amd/modern/array/pull', | ||
'immutable/dist/immutable'], function (pull, Immutable) { | ||
@@ -22,5 +22,5 @@ | ||
if (fn) { | ||
listeners = listeners.delete(fn); | ||
this._listeners = listeners.delete(fn); | ||
} else { | ||
listeners = listeners.clear(); | ||
this._listeners = listeners.clear(); | ||
} | ||
@@ -27,0 +27,0 @@ }; |
define([ | ||
'lodash-amd/modern/collections/contains', | ||
'lodash-amd/modern/collection/contains', | ||
'../../dom-observer' | ||
@@ -4,0 +4,0 @@ ], function ( |
define([ | ||
'lodash-amd/modern/arrays/last' | ||
'lodash-amd/modern/array/last' | ||
], function ( | ||
@@ -4,0 +4,0 @@ last |
define([ | ||
'../../../../element', | ||
'lodash-amd/modern/collections/contains' | ||
'lodash-amd/modern/collection/contains' | ||
], function ( | ||
@@ -5,0 +5,0 @@ element, |
define([ | ||
'lodash-amd/modern/utilities/escape' | ||
'lodash-amd/modern/string/escape' | ||
], function ( | ||
@@ -4,0 +4,0 @@ escape |
@@ -1,2 +0,2 @@ | ||
define(['lodash-amd/modern/objects/assign'], function (assign) { | ||
define(['lodash-amd/modern/object/assign'], function (assign) { | ||
@@ -3,0 +3,0 @@ 'use strict'; |
@@ -41,2 +41,12 @@ require('node-amd-require')({ | ||
}); | ||
it('should remove listeners when off is called', function(){ | ||
var handle = sinon.spy(); | ||
emitter.on('event', handle); | ||
emitter.trigger('event'); | ||
emitter.off('event', handle); | ||
emitter.trigger('event'); | ||
expect(handle.callCount).to.equal(1); | ||
}) | ||
}); |
198145
4125