[Pkg-javascript-commits] [dojo] 59/87: Fix :disabled and :enabled selectors, fixes #14762 !strict Backport to 1.7
David Prévot
taffit at moszumanska.debian.org
Thu Aug 21 17:39:21 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.7.5
in repository dojo.
commit 2a8e3f430a72d26ac014d31f72d7aa6450d6b177
Author: Colin Snover <github.com at zetafleet.com>
Date: Fri Nov 23 22:55:56 2012 +0000
Fix :disabled and :enabled selectors, fixes #14762 !strict Backport to 1.7
git-svn-id: http://svn.dojotoolkit.org/src/branches/1.7/dojo@30034 560b804f-0ae3-0310-86f3-f6aa0a117693
---
selector/acme.js | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/selector/acme.js b/selector/acme.js
index 7731a58..9235166 100644
--- a/selector/acme.js
+++ b/selector/acme.js
@@ -583,7 +583,17 @@ define(["../_base/kernel", "../has", "../dom", "../_base/sniff", "../_base/array
if((nt === 1)||(nt == 3)){ return false; }
}
return true;
- }
+ };
+ },
+ "disabled": function(name, condition){
+ return function(elem){
+ return elem.disabled;
+ };
+ },
+ "enabled": function(name, condition){
+ return function(elem){
+ return !elem.disabled;
+ };
},
"contains": function(name, condition){
var cz = condition.charAt(0);
@@ -1359,8 +1369,7 @@ define(["../_base/kernel", "../has", "../dom", "../_base/sniff", "../_base/array
// * certain pseduo-selectors which don't get a lot of day-to-day use:
// | * `:root`, `:lang()`, `:target`, `:focus`
// * all visual and state selectors:
- // | * `:root`, `:active`, `:hover`, `:visisted`, `:link`,
- // `:enabled`, `:disabled`
+ // | * `:root`, `:active`, `:hover`, `:visisted`, `:link`
// * `:*-of-type` pseudo selectors
//
// dojo.query and XML Documents:
--
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