Sha256: 4ed140ec6daf4d3865f9f39375e76a7231dca9b4a56a8d06cbfec95313f66bf9
Contents?: true
Size: 701 Bytes
Versions: 1
Compression:
Stored size: 701 Bytes
Contents
// Role.js, extension for querySelectorAll function v1.0.2 ~ https://github.com/kossnocorp/role (function() { var elements, elm, _fn, _i, _len; elements = []; if (typeof Document !== "undefined" && Document !== null) elements << Document; if (typeof Element !== "undefined" && Element !== null) elements << Element; _fn = function(elm) { var nativeQuery; nativeQuery = elm.prototype.querySelectorAll; return elm.prototype.querySelectorAll = function(selector) { return nativeQuery.call(this, selector.replace(/@(\w+)/g, "[role~=\"$1\"]")); }; }; for (_i = 0, _len = elements.length; _i < _len; _i++) { elm = elements[_i]; _fn(elm); } }).call(this);
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
role-rails-1.2.0 | vendor/role/lib/role.js |