MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / generateRuleHash

Function generateRuleHash

code/styling/public/app.js:21725–21727  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

21723var _ComponentStyle = (function (nameGenerator, flatten, stringifyRules) {
21724 /* combines hashStr (murmurhash) and nameGenerator for convenience */
21725 var generateRuleHash = function generateRuleHash(str) {
21726 return nameGenerator(murmurhash(str));
21727 };
21728
21729 var ComponentStyle = function () {
21730 function ComponentStyle(rules, attrs, componentId) {

Callers 1

app.jsFile · 0.85

Calls 1

murmurhashFunction · 0.85

Tested by

no test coverage detected