MCPcopy
hub / github.com/fanmingming/live / loop

Function loop

m3u8/vue.js:2769–2794  ·  view source on GitHub ↗
( key )

Source from the content-addressed store, hash-verified

2767 }
2768 var hash;
2769 var loop = function ( key ) {
2770 if (
2771 key === 'class' ||
2772 key === 'style' ||
2773 isReservedAttribute(key)
2774 ) {
2775 hash = data;
2776 } else {
2777 var type = data.attrs && data.attrs.type;
2778 hash = asProp || config.mustUseProp(tag, type, key)
2779 ? data.domProps || (data.domProps = {})
2780 : data.attrs || (data.attrs = {});
2781 }
2782 var camelizedKey = camelize(key);
2783 var hyphenatedKey = hyphenate(key);
2784 if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
2785 hash[key] = value[key];
2786
2787 if (isSync) {
2788 var on = data.on || (data.on = {});
2789 on[("update:" + key)] = function ($event) {
2790 value[key] = $event;
2791 };
2792 }
2793 }
2794 };
2795
2796 for (var key in value) loop( key );
2797 }

Callers 2

bindObjectPropsFunction · 0.85
initPropsFunction · 0.85

Calls 4

validatePropFunction · 0.85
warnFunction · 0.85
defineReactive$$1Function · 0.85
proxyFunction · 0.85

Tested by

no test coverage detected