[Pkg-javascript-commits] [dojo] 15/29: Remove dojo.hasClass from dom-class documentation, refs #17468
David Prévot
taffit at moszumanska.debian.org
Thu Mar 24 04:28:34 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.8.11
in repository dojo.
commit 1f5cb5f6924147543d471e754955c1410fd720af
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
(cherry picked from commit dd88db5046b0142ea9d3b7b41f0fe0dfd39eef29)
---
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