jquery exception:
{
if
(T==
null
){
throw
"Syntax error, unrecognized expression: "
+ad}
else
{
break
}}
this function calls the jquery:
_find:
function
_find(selector, context, single, filter) {
var
found = [],
selectors;
if
(
typeof
(selector) ===
"string"
) {
selectors = [selector];
}
else
{
selectors = selector;
}
var
includeSelf = context
instanceof
Array,
simpleNonTag = /^([\$
#\.])((\w|[$:\.\-])+)$/,
tag = /^((\w+)|\*)$/;
if
((
typeof
(context) ===
"string"
) || (context
instanceof
Array)) {
context = Sys._find(context);
}
if
(context
instanceof
Sys.ElementSet) {
context = context.get();
}
foreach(selectors,
function
(selector) {
if
(
typeof
(selector) !==
"string"
) {
if
(filter) {
if
(contains(context, selector)) {
found.push(selector);
}
}
else
{
found.push(selector);
}
}
else
{
var
match = simpleNonTag.exec(selector);
if
(match && match.length === 4) {
selector = match[2];
var
type = match[1];
if
(type ===
"$"
) {
Sys._getComponent(found, selector, context);
}
else
{
var
finder = type ===
"#"
? Sys._getById : Sys._getByClass;
if
(context) {
foreach(context,
function
(node) {
if
(node.nodeType === 1) {
return
finder(found, selector, single, includeSelf, node, filter);
}
});
}
else
{
finder(found, selector, single);
}
}
}
else
if
(tag.test(selector)) {
if
(context
instanceof
Array) {
foreach(context,
function
(node) {
if
(node.nodeType === 1) {
if
(includeSelf && (selector ===
"*"
|| (node.tagName.toLowerCase() === selector))) {
found.push(node);
if
(single)
return
true
;
}
if
(!filter) {
if
(!foreach(all(selector, node),
function
(node) {
found.push(node);
if
(single)
return
true
;
})) {
return
true
;
}
}
}
});
}
else
{
var
nodes = all(selector, context);
if
(single) {
if
(nodes[0]) {
found.push(nodes[0]);
}
return
true
;
}
foreach(nodes,
function
(node) {
found.push(node);
});
}
}
else
if
(window.jQuery) {
if
(!filter) {
found.push.apply(found, jQuery(selector, context).get());
}
if
(includeSelf) {
found.push.apply(found, jQuery(context).filter(selector).get());
}
}
}
});