[Pkg-javascript-commits] [dojo] 02/13: NodeList: propagating adopt() changes to 1.3, !strict, refs #9362.

David Prévot taffit at moszumanska.debian.org
Mon May 11 20:12:25 UTC 2015


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

taffit pushed a commit to annotated tag 1.3.2
in repository dojo.

commit 7ed99375562ff13e87a8796c6dafa2c125722d9c
Author: Eugene Lazutkin <eugene at lazutkin.com>
Date:   Sat Jun 13 19:15:32 2009 +0000

    NodeList: propagating adopt() changes to 1.3, !strict, refs #9362.
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.3/dojo@17939 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 _base/NodeList.js         | 2 +-
 tests/_base/NodeList.html | 9 ++++++---
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/_base/NodeList.js b/_base/NodeList.js
index 42e4437..e012d01 100644
--- a/_base/NodeList.js
+++ b/_base/NodeList.js
@@ -566,7 +566,7 @@ dojo.require("dojo._base.array");
 			//		|	"only"
 			//		|	"replace"
 			// 		or an offset in the childNodes property
-			return d.query(queryOrListOrNode).place(item[0], position);	// dojo.NodeList
+			return d.query(queryOrListOrNode).place(this[0], position);	// dojo.NodeList
 		},
 
 		// FIXME: do we need this?
diff --git a/tests/_base/NodeList.html b/tests/_base/NodeList.html
index 1e53ac2..1e332fc 100644
--- a/tests/_base/NodeList.html
+++ b/tests/_base/NodeList.html
@@ -326,11 +326,14 @@
 							doh.is("blah", nl[0].innerHTML);
 						},
 
-						/*						
-						// FIXME
 						function adopt(t){
+							var div = dojo.query(dojo.create("div"));
+							div.adopt(dojo.create("span"));
+							div.adopt(dojo.create("em"), "first");
+							t.is(2, dojo.query("*", div[0]).length);
+							t.is("em", div[0].firstChild.tagName.toLowerCase());
+							t.is("span", div[0].lastChild.tagName.toLowerCase());
 						},
-						*/
 
 						function addContent(t){
 							//text content

-- 
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