You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
593 B
21 lines
593 B
|
15 years ago
|
/**
|
||
|
|
sample javascript from xui
|
||
|
|
*/
|
||
|
|
|
||
|
|
var undefined,
|
||
|
|
xui,
|
||
|
|
window = this,
|
||
|
|
string = new String('string'),
|
||
|
|
document = window.document,
|
||
|
|
simpleExpr = /^#?([\w-]+)$/,
|
||
|
|
idExpr = /^#/,
|
||
|
|
tagExpr = /<([\w:]+)/,
|
||
|
|
slice = function (e) { return [].slice.call(e, 0); };
|
||
|
|
try { var a = slice(document.documentElement.childNodes)[0].nodeType; }
|
||
|
|
catch(e){ slice = function (e) { var ret=[]; for (var i=0; e[i]; i++)
|
||
|
|
ret.push(e[i]); return ret; }; }
|
||
|
|
|
||
|
|
window.x$ = window.xui = xui = function(q, context) {
|
||
|
|
return new xui.fn.find(q, context);
|
||
|
|
};
|