Sha256: 689b1a4e67206676c0dba557d19dc5faf5638fb4193cc5c1ecdbc1daf6612afa

Contents?: true

Size: 870 Bytes

Versions: 1

Compression:

Stored size: 870 Bytes

Contents

// Role.js, jQuery adapter v1.0.2 ~ https://github.com/kossnocorp/role
(function(a){var b,c;a==null&&(a=jQuery),a.expr.match.ROLE=/@((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,a.expr.preFilter.ROLE=function(a){return" "+a[1]+" "},a.expr.filter.ROLE=function(a,b){return a.getAttribute!=null&&(" "+a.getAttribute("role")+" ").indexOf(b)!==-1};for(c in a.expr.match)a.expr.match[c]=new RegExp(a.expr.match[c].source+/(?![^\[]*\])(?![^\(]*\))/.source),a.expr.leftMatch[c]=new RegExp(/(^(?:.|\r|\n)*?)/.source+a.expr.match[c].source.replace(/\\(\d+)/g,function(a,b){return"\\"+(b-0+1)}));if(document.documentElement.matchesSelector==null&&document.documentElement.mozMatchesSelector!=null)return b=a.find.matchesSelector,a.find.matchesSelector=function(a,c){return b(a,c.replace(/(@[\w\-]+)/g,function(a){return a.replace(/^@([\w\-]+)$/,function(a,b){return'[role~="'+b+'"]'})}))}})($);

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
role-rails-1.2.0 vendor/role/lib/jquery.role.min.js