MCPcopy Create free account
hub / github.com/apache/cloudstack / quickParse

Function quickParse

tools/ngui/static/js/lib/jquery-1.7.2.js:2879–2888  ·  view source on GitHub ↗
( selector )

Source from the content-addressed store, hash-verified

2877 rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
2878 rquickIs = /^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,
2879 quickParse = function( selector ) {
2880 var quick = rquickIs.exec( selector );
2881 if ( quick ) {
2882 // 0 1 2 3
2883 // [ _, tag, id, class ]
2884 quick[1] = ( quick[1] || "" ).toLowerCase();
2885 quick[3] = quick[3] && new RegExp( "(?:^|\\s)" + quick[3] + "(?:\\s|$)" );
2886 }
2887 return quick;
2888 },
2889 quickIs = function( elem, m ) {
2890 var attrs = elem.attributes || {};
2891 return (

Callers 1

jquery-1.7.2.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected