[Pkg-javascript-commits] [dojo] 64/87: Fix $= query handling, fixes #13658 !strict Backport to 1.7

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 17:39:22 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 50cb9f2a361c0d12e1acf56fb6a9179b9ae853e7
Author: Colin Snover <github.com at zetafleet.com>
Date:   Fri Nov 23 23:46:44 2012 +0000

    Fix $= query handling, fixes #13658 !strict Backport to 1.7
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.7/dojo@30041 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 selector/acme.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/selector/acme.js b/selector/acme.js
index b4eaa80..bfc6891 100644
--- a/selector/acme.js
+++ b/selector/acme.js
@@ -450,7 +450,8 @@ define(["../_base/kernel", "../has", "../dom", "../_base/sniff", "../_base/array
 			//		with the string "bar"
 			return function(elem){
 				var ea = " "+_getAttr(elem, attr);
-				return (ea.lastIndexOf(value)==(ea.length-value.length));
+				var lastIndex = ea.lastIndexOf(value);
+				return lastIndex > -1 && (lastIndex==(ea.length-value.length));
 			}
 		},
 		"~=": function(attr, value){

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