diff options
author | Andrew Dolgov <[email protected]> | 2011-11-08 20:40:44 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-11-08 20:40:44 +0400 |
commit | 81bea17aefb26859f825b9293c7c99192874806e (patch) | |
tree | fb244408ca271affa2899adb634788802c9a89d8 /lib/dojo/NodeList-html.js | |
parent | 870a70e109ac9e80a88047044530de53d0404ec7 (diff) |
upgrade Dojo to 1.6.1
Diffstat (limited to 'lib/dojo/NodeList-html.js')
-rw-r--r-- | lib/dojo/NodeList-html.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/dojo/NodeList-html.js b/lib/dojo/NodeList-html.js index e8e0ac220..bc8da9d86 100644 --- a/lib/dojo/NodeList-html.js +++ b/lib/dojo/NodeList-html.js @@ -1,5 +1,5 @@ /* - Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved. + Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ @@ -10,6 +10,7 @@ dojo._hasResource["dojo.NodeList-html"] = true; dojo.provide("dojo.NodeList-html"); dojo.require("dojo.html"); + /*===== dojo["NodeList-html"] = { // summary: Adds a chainable html method to dojo.query() / Nodelist instances for setting/replacing node content @@ -21,15 +22,15 @@ dojo.extend(dojo.NodeList, { // summary: // see `dojo.html.set()`. Set the content of all elements of this NodeList // - // description: - // Based around `dojo.html.set()`, set the content of the Elements in a + // description: + // Based around `dojo.html.set()`, set the content of the Elements in a // NodeList to the given content (string/node/nodelist), with optional arguments // to further tune the set content behavior. // // example: // | dojo.query(".thingList").html("<li dojoType='dojo.dnd.Moveable'>1</li><li dojoType='dojo.dnd.Moveable'>2</li><li dojoType='dojo.dnd.Moveable'>3</li>", - // | { - // | parseContent: true, + // | { + // | parseContent: true, // | onBegin: function(){ // | this.content = this.content.replace(/([0-9])/g, this.id + ": $1"); // | this.inherited("onBegin", arguments); @@ -38,7 +39,7 @@ dojo.extend(dojo.NodeList, { var dhs = new dojo.html._ContentSetter(params || {}); this.forEach(function(elm){ - dhs.node = elm; + dhs.node = elm; dhs.set(content); dhs.tearDown(); }); |