[Pkg-javascript-commits] [dojo] 40/149: Allow first function registered with dom-prop::set to be disconected. Fixes #18442.

David Prévot taffit at moszumanska.debian.org
Sat Feb 27 03:13:45 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository dojo.

commit 515ed792167bfd2bf1055e4ba80354ad49474c5c
Author: Mike Van Sickle <mvansickle1 at gmail.com>
Date:   Tue Jan 13 14:01:45 2015 -0500

    Allow first function registered with dom-prop::set to be disconected.
    Fixes #18442.
---
 dom-prop.js            | 2 +-
 tests/unit/dom-prop.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dom-prop.js b/dom-prop.js
index 0b1b2ba..a4ba1dd 100644
--- a/dom-prop.js
+++ b/dom-prop.js
@@ -12,7 +12,7 @@ define(["exports", "./_base/kernel", "./sniff", "./_base/lang", "./dom", "./dom-
 	// =============================
 
 	// helper to connect events
-	var _evtHdlrMap = {}, _ctr = 0, _attrId = dojo._scopeName + "attrid";
+	var _evtHdlrMap = {}, _ctr = 1, _attrId = dojo._scopeName + "attrid";
 	has.add('dom-textContent', function (global, doc, element) { return 'textContent' in element; });
 
 	exports.names = {
diff --git a/tests/unit/dom-prop.js b/tests/unit/dom-prop.js
index 410a151..4219ce3 100644
--- a/tests/unit/dom-prop.js
+++ b/tests/unit/dom-prop.js
@@ -299,7 +299,7 @@ define([
                 domProp.set(node, propertyName, newPropertyValue);
 
                 //assert
-                assert.isTrue(mock.calledWith(oldPropertyValue));
+                assert.isTrue(mock.called);
 
                 mock.restore();
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list