[Pkg-javascript-commits] [dojo] 100/149: Remove dojo.hasClass from dom-class documentation, refs #17468

David Prévot taffit at moszumanska.debian.org
Sat Feb 27 03:13:52 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 dd88db5046b0142ea9d3b7b41f0fe0dfd39eef29
Author: Ed Hager <ehager at sitepen.com>
Date:   Tue Dec 22 10:24:20 2015 -0700

    Remove dojo.hasClass from dom-class documentation, refs #17468
---
 dom-class.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dom-class.js b/dom-class.js
index 06d4cce..d3b736f 100644
--- a/dom-class.js
+++ b/dom-class.js
@@ -117,7 +117,7 @@ define(["./_base/lang", "./_base/array", "./dom"], function(lang, array, dom){
 			//		A string class name to look for.
 			// example:
 			//		Do something if a node with id="someNode" has class="aSillyClassName" present
-			//	|	if(dojo.hasClass("someNode","aSillyClassName")){ ... }
+			//	|	if(domClass.contains("someNode","aSillyClassName")){ ... }
 
 			return ((" " + dom.byId(node)[className] + " ").indexOf(" " + classStr + " ") >= 0); // Boolean
 		},
@@ -235,7 +235,7 @@ define(["./_base/lang", "./_base/array", "./dom"], function(lang, array, dom){
 		replace: function replaceClass(/*DomNode|String*/ node, /*String|Array*/ addClassStr, /*String|Array?*/ removeClassStr){
 			// summary:
 			//		Replaces one or more classes on a node if not present.
-			//		Operates more quickly than calling dojo.removeClass and dojo.addClass
+			//		Operates more quickly than calling domClass.remove and domClass.add
 			//
 			// node: String|DOMNode
 			//		String ID or DomNode reference to remove the class from.
@@ -289,7 +289,7 @@ define(["./_base/lang", "./_base/array", "./dom"], function(lang, array, dom){
 			//
 			// condition:
 			//		If passed, true means to add the class, false means to remove.
-			//		Otherwise dojo.hasClass(node, classStr) is used to detect the class presence.
+			//		Otherwise domClass.contains(node, classStr) is used to detect the class presence.
 			//
 			// example:
 			//	|	require(["dojo/dom-class"], function(domClass){

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