code stringlengths 24 2.07M | docstring stringlengths 25 85.3k | func_name stringlengths 1 92 | language stringclasses 1
value | repo stringlengths 5 64 | path stringlengths 4 172 | url stringlengths 44 218 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
function initState (vm) {
vm._watchers = [];
var opts = vm.$options;
if (opts.props) { initProps(vm, opts.props); }
if (opts.methods) { initMethods(vm, opts.methods); }
if (opts.data) {
initData(vm);
} else {
observe(vm._data = {}, true /* asRootData */);
}
if (opts.computed) { initComputed(vm, ... | Remove self from all dependencies' subscriber list. | initState | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function initProps (vm, propsOptions) {
var propsData = vm.$options.propsData || {};
var props = vm._props = {};
// cache prop keys so that future props updates can iterate using Array
// instead of dynamic object key enumeration.
var keys = vm.$options._propKeys = [];
var isRoot = !vm.$parent;
// root in... | Remove self from all dependencies' subscriber list. | initProps | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
loop = function ( key ) {
keys.push(key);
var value = validateProp(key, propsOptions, propsData, vm);
/* istanbul ignore else */
if (process.env.NODE_ENV !== 'production') {
var hyphenatedKey = hyphenate(key);
if (isReservedAttribute(hyphenatedKey) ||
config.isReservedAttr(hyphenat... | Remove self from all dependencies' subscriber list. | loop | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function initData (vm) {
var data = vm.$options.data;
data = vm._data = typeof data === 'function'
? getData(data, vm)
: data || {};
if (!isPlainObject(data)) {
data = {};
process.env.NODE_ENV !== 'production' && warn(
'data functions should return an object:\n' +
'https://vuejs.org/v2... | Remove self from all dependencies' subscriber list. | initData | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function getData (data, vm) {
// #7573 disable dep collection when invoking data getters
pushTarget();
try {
return data.call(vm, vm)
} catch (e) {
handleError(e, vm, "data()");
return {}
} finally {
popTarget();
}
} | Remove self from all dependencies' subscriber list. | getData | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function initComputed (vm, computed) {
// $flow-disable-line
var watchers = vm._computedWatchers = Object.create(null);
// computed properties are just getters during SSR
var isSSR = isServerRendering();
for (var key in computed) {
var userDef = computed[key];
var getter = typeof userDef === 'functio... | Remove self from all dependencies' subscriber list. | initComputed | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function defineComputed (
target,
key,
userDef
) {
var shouldCache = !isServerRendering();
if (typeof userDef === 'function') {
sharedPropertyDefinition.get = shouldCache
? createComputedGetter(key)
: createGetterInvoker(userDef);
sharedPropertyDefinition.set = noop;
} else {
sharedP... | Remove self from all dependencies' subscriber list. | defineComputed | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function createComputedGetter (key) {
return function computedGetter () {
var watcher = this._computedWatchers && this._computedWatchers[key];
if (watcher) {
if (watcher.dirty) {
watcher.evaluate();
}
if (Dep.target) {
watcher.depend();
}
return watcher.value
... | Remove self from all dependencies' subscriber list. | createComputedGetter | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function createGetterInvoker(fn) {
return function computedGetter () {
return fn.call(this, this)
}
} | Remove self from all dependencies' subscriber list. | createGetterInvoker | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function initMethods (vm, methods) {
var props = vm.$options.props;
for (var key in methods) {
if (process.env.NODE_ENV !== 'production') {
if (typeof methods[key] !== 'function') {
warn(
"Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
... | Remove self from all dependencies' subscriber list. | initMethods | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function initWatch (vm, watch) {
for (var key in watch) {
var handler = watch[key];
if (Array.isArray(handler)) {
for (var i = 0; i < handler.length; i++) {
createWatcher(vm, key, handler[i]);
}
} else {
createWatcher(vm, key, handler);
}
}
} | Remove self from all dependencies' subscriber list. | initWatch | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function createWatcher (
vm,
expOrFn,
handler,
options
) {
if (isPlainObject(handler)) {
options = handler;
handler = handler.handler;
}
if (typeof handler === 'string') {
handler = vm[handler];
}
return vm.$watch(expOrFn, handler, options)
} | Remove self from all dependencies' subscriber list. | createWatcher | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function stateMixin (Vue) {
// flow somehow has problems with directly declared definition object
// when using Object.defineProperty, so we have to procedurally build up
// the object here.
var dataDef = {};
dataDef.get = function () { return this._data };
var propsDef = {};
propsDef.get = function () { ... | Remove self from all dependencies' subscriber list. | stateMixin | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function initProvide (vm) {
var provide = vm.$options.provide;
if (provide) {
vm._provided = typeof provide === 'function'
? provide.call(vm)
: provide;
}
} | Remove self from all dependencies' subscriber list. | initProvide | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function initInjections (vm) {
var result = resolveInject(vm.$options.inject, vm);
if (result) {
toggleObserving(false);
Object.keys(result).forEach(function (key) {
/* istanbul ignore else */
if (process.env.NODE_ENV !== 'production') {
defineReactive$$1(vm, key, result[key], function (... | Remove self from all dependencies' subscriber list. | initInjections | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function resolveInject (inject, vm) {
if (inject) {
// inject is :any because flow is not smart enough to figure out cached
var result = Object.create(null);
var keys = hasSymbol
? Reflect.ownKeys(inject).filter(function (key) {
/* istanbul ignore next */
return Object.getOwnProperty... | Remove self from all dependencies' subscriber list. | resolveInject | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function renderList (
val,
render
) {
var ret, i, l, keys, key;
if (Array.isArray(val) || typeof val === 'string') {
ret = new Array(val.length);
for (i = 0, l = val.length; i < l; i++) {
ret[i] = render(val[i], i);
}
} else if (typeof val === 'number') {
ret = new Array(val);
for (i... | Runtime helper for rendering v-for lists. | renderList | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function checkKeyCodes (
eventKeyCode,
key,
builtInKeyCode,
eventKeyName,
builtInKeyName
) {
var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
return isKeyNotMatch(builtInKeyName, eventKeyName)
} else if (mappedKeyCode) {
r... | Runtime helper for checking keyCodes from config.
exposed as Vue.prototype._k
passing in eventKeyName as last argument separately for backwards compat | checkKeyCodes | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function bindObjectProps (
data,
tag,
value,
asProp,
isSync
) {
if (value) {
if (!isObject(value)) {
process.env.NODE_ENV !== 'production' && warn(
'v-bind without argument expects an Object or Array value',
this
);
} else {
if (Array.isArray(value)) {
value... | Runtime helper for merging v-bind="object" into a VNode's data. | bindObjectProps | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
loop = function ( key ) {
if (
key === 'class' ||
key === 'style' ||
isReservedAttribute(key)
) {
hash = data;
} else {
var type = data.attrs && data.attrs.type;
hash = asProp || config.mustUseProp(tag, type, key)
? data.dom... | Runtime helper for merging v-bind="object" into a VNode's data. | loop | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function renderStatic (
index,
isInFor
) {
var cached = this._staticTrees || (this._staticTrees = []);
var tree = cached[index];
// if has already-rendered static tree and not inside v-for,
// we can reuse the same tree.
if (tree && !isInFor) {
return tree
}
// otherwise, render a fresh tree.
tr... | Runtime helper for rendering static trees. | renderStatic | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function markOnce (
tree,
index,
key
) {
markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
return tree
} | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | markOnce | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function markStatic (
tree,
key,
isOnce
) {
if (Array.isArray(tree)) {
for (var i = 0; i < tree.length; i++) {
if (tree[i] && typeof tree[i] !== 'string') {
markStaticNode(tree[i], (key + "_" + i), isOnce);
}
}
} else {
markStaticNode(tree, key, isOnce);
}
} | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | markStatic | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function markStaticNode (node, key, isOnce) {
node.isStatic = true;
node.key = key;
node.isOnce = isOnce;
} | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | markStaticNode | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function bindObjectListeners (data, value) {
if (value) {
if (!isPlainObject(value)) {
process.env.NODE_ENV !== 'production' && warn(
'v-on without argument expects an Object value',
this
);
} else {
var on = data.on = data.on ? extend({}, data.on) : {};
for (var key in... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | bindObjectListeners | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function installRenderHelpers (target) {
target._o = markOnce;
target._n = toNumber;
target._s = toString;
target._l = renderList;
target._t = renderSlot;
target._q = looseEqual;
target._i = looseIndexOf;
target._m = renderStatic;
target._f = resolveFilter;
target._k = checkKeyCodes;
target._b = b... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | installRenderHelpers | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function FunctionalRenderContext (
data,
props,
children,
parent,
Ctor
) {
var options = Ctor.options;
// ensure the createElement function in functional components
// gets a unique context - this is necessary for correct named slot check
var contextVm;
if (hasOwn(parent, '_uid')) {
contextVm = ... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | FunctionalRenderContext | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function createFunctionalComponent (
Ctor,
propsData,
data,
contextVm,
children
) {
var options = Ctor.options;
var props = {};
var propOptions = options.props;
if (isDef(propOptions)) {
for (var key in propOptions) {
props[key] = validateProp(key, propOptions, propsData || emptyObject);
... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | createFunctionalComponent | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
// #7817 clone node before setting fnContext, otherwise if the node is reused
// (e.g. it was from a cached normal slot) the fnContext causes named slots
// that should not be matched to match.
var clone = cloneVNode(vnode)... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | cloneAndMarkFunctionalResult | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function mergeProps (to, from) {
for (var key in from) {
to[camelize(key)] = from[key];
}
} | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | mergeProps | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function createComponent (
Ctor,
data,
context,
children,
tag
) {
if (isUndef(Ctor)) {
return
}
var baseCtor = context.$options._base;
// plain options object: turn it into a constructor
if (isObject(Ctor)) {
Ctor = baseCtor.extend(Ctor);
}
// if at this stage it's not a constructor o... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | createComponent | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function createComponentInstanceForVnode (
vnode, // we know it's MountedComponentVNode but flow doesn't
parent // activeInstance in lifecycle state
) {
var options = {
_isComponent: true,
_parentVnode: vnode,
parent: parent
};
// check inline-template render functions
var inlineTemplate = vnode... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | createComponentInstanceForVnode | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function installComponentHooks (data) {
var hooks = data.hook || (data.hook = {});
for (var i = 0; i < hooksToMerge.length; i++) {
var key = hooksToMerge[i];
var existing = hooks[key];
var toMerge = componentVNodeHooks[key];
if (existing !== toMerge && !(existing && existing._merged)) {
hooks[... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | installComponentHooks | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function mergeHook$1 (f1, f2) {
var merged = function (a, b) {
// flow complains about extra args which is why we use any
f1(a, b);
f2(a, b);
};
merged._merged = true;
return merged
} | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | mergeHook$1 | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
merged = function (a, b) {
// flow complains about extra args which is why we use any
f1(a, b);
f2(a, b);
} | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | merged | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function transformModel (options, data) {
var prop = (options.model && options.model.prop) || 'value';
var event = (options.model && options.model.event) || 'input'
;(data.props || (data.props = {}))[prop] = data.model.value;
var on = data.on || (data.on = {});
var existing = on[event];
var callback = data.... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | transformModel | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function createElement (
context,
tag,
data,
children,
normalizationType,
alwaysNormalize
) {
if (Array.isArray(data) || isPrimitive(data)) {
normalizationType = children;
children = data;
data = undefined;
}
if (isTrue(alwaysNormalize)) {
normalizationType = ALWAYS_NORMALIZE;
}
re... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | createElement | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function _createElement (
context,
tag,
data,
children,
normalizationType
) {
if (isDef(data) && isDef((data).__ob__)) {
process.env.NODE_ENV !== 'production' && warn(
"Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
'Always create fresh vnode data objects... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | _createElement | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function applyNS (vnode, ns, force) {
vnode.ns = ns;
if (vnode.tag === 'foreignObject') {
// use default namespace inside foreignObject
ns = undefined;
force = true;
}
if (isDef(vnode.children)) {
for (var i = 0, l = vnode.children.length; i < l; i++) {
var child = vnode.children[i];
... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | applyNS | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function registerDeepBindings (data) {
if (isObject(data.style)) {
traverse(data.style);
}
if (isObject(data.class)) {
traverse(data.class);
}
} | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | registerDeepBindings | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function initRender (vm) {
vm._vnode = null; // the root of the child tree
vm._staticTrees = null; // v-once cached trees
var options = vm.$options;
var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
var renderContext = parentVnode && parentVnode.context;
vm.$slots = ... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | initRender | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function renderMixin (Vue) {
// install runtime convenience helpers
installRenderHelpers(Vue.prototype);
Vue.prototype.$nextTick = function (fn) {
return nextTick(fn, this)
};
Vue.prototype._render = function () {
var vm = this;
var ref = vm.$options;
var render = ref.render;
var _parent... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | renderMixin | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function initMixin (Vue) {
Vue.prototype._init = function (options) {
var vm = this;
// a uid
vm._uid = uid$3++;
var startTag, endTag;
/* istanbul ignore if */
if (process.env.NODE_ENV !== 'production' && config.performance && mark) {
startTag = "vue-perf-start:" + (vm._uid);
endT... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | initMixin | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function initInternalComponent (vm, options) {
var opts = vm.$options = Object.create(vm.constructor.options);
// doing this because it's faster than dynamic enumeration.
var parentVnode = options._parentVnode;
opts.parent = options.parent;
opts._parentVnode = parentVnode;
var vnodeComponentOptions = paren... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | initInternalComponent | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function resolveConstructorOptions (Ctor) {
var options = Ctor.options;
if (Ctor.super) {
var superOptions = resolveConstructorOptions(Ctor.super);
var cachedSuperOptions = Ctor.superOptions;
if (superOptions !== cachedSuperOptions) {
// super option changed,
// need to resolve new options.
... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | resolveConstructorOptions | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function resolveModifiedOptions (Ctor) {
var modified;
var latest = Ctor.options;
var extended = Ctor.extendOptions;
var sealed = Ctor.sealedOptions;
for (var key in latest) {
if (latest[key] !== sealed[key]) {
if (!modified) { modified = {}; }
modified[key] = dedupe(latest[key], extended[key]... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | resolveModifiedOptions | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function dedupe (latest, extended, sealed) {
// compare latest and sealed to ensure lifecycle hooks won't be duplicated
// between merges
if (Array.isArray(latest)) {
var res = [];
sealed = Array.isArray(sealed) ? sealed : [sealed];
extended = Array.isArray(extended) ? extended : [extended];
for (... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | dedupe | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function Vue (options) {
if (process.env.NODE_ENV !== 'production' &&
!(this instanceof Vue)
) {
warn('Vue is a constructor and should be called with the `new` keyword');
}
this._init(options);
} | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | Vue | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function initUse (Vue) {
Vue.use = function (plugin) {
var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
if (installedPlugins.indexOf(plugin) > -1) {
return this
}
// additional parameters
var args = toArray(arguments, 1);
args.unshift(this);
if (type... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | initUse | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function initMixin$1 (Vue) {
Vue.mixin = function (mixin) {
this.options = mergeOptions(this.options, mixin);
return this
};
} | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | initMixin$1 | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function initExtend (Vue) {
/**
* Each instance constructor, including Vue, has a unique
* cid. This enables us to create wrapped "child
* constructors" for prototypal inheritance and cache them.
*/
Vue.cid = 0;
var cid = 1;
/**
* Class inheritance
*/
Vue.extend = function (extendOptions) {... | Runtime helper for v-once.
Effectively it means marking the node as static with a unique key. | initExtend | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function query (el) {
if (typeof el === 'string') {
var selected = document.querySelector(el);
if (!selected) {
process.env.NODE_ENV !== 'production' && warn(
'Cannot find element: ' + el
);
return document.createElement('div')
}
return selected
} else {
return el
}
} | Query an element selector if it's not an element already. | query | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function createElement$1 (tagName, vnode) {
var elm = document.createElement(tagName);
if (tagName !== 'select') {
return elm
}
// false or null will remove the attribute but undefined will not
if (vnode.data && vnode.data.attrs && vnode.data.attrs.multiple !== undefined) {
elm.setAttribute('multiple'... | Query an element selector if it's not an element already. | createElement$1 | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function createElementNS (namespace, tagName) {
return document.createElementNS(namespaceMap[namespace], tagName)
} | Query an element selector if it's not an element already. | createElementNS | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function createTextNode (text) {
return document.createTextNode(text)
} | Query an element selector if it's not an element already. | createTextNode | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function createComment (text) {
return document.createComment(text)
} | Query an element selector if it's not an element already. | createComment | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function insertBefore (parentNode, newNode, referenceNode) {
parentNode.insertBefore(newNode, referenceNode);
} | Query an element selector if it's not an element already. | insertBefore | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function parentNode (node) {
return node.parentNode
} | Query an element selector if it's not an element already. | parentNode | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function nextSibling (node) {
return node.nextSibling
} | Query an element selector if it's not an element already. | nextSibling | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function tagName (node) {
return node.tagName
} | Query an element selector if it's not an element already. | tagName | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function setTextContent (node, text) {
node.textContent = text;
} | Query an element selector if it's not an element already. | setTextContent | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function setStyleScope (node, scopeId) {
node.setAttribute(scopeId, '');
} | Query an element selector if it's not an element already. | setStyleScope | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function registerRef (vnode, isRemoval) {
var key = vnode.data.ref;
if (!isDef(key)) { return }
var vm = vnode.context;
var ref = vnode.componentInstance || vnode.elm;
var refs = vm.$refs;
if (isRemoval) {
if (Array.isArray(refs[key])) {
remove(refs[key], ref);
} else if (refs[key] === ref) {... | Query an element selector if it's not an element already. | registerRef | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function genComponentModel (
el,
value,
modifiers
) {
var ref = modifiers || {};
var number = ref.number;
var trim = ref.trim;
var baseValueExpression = '$$v';
var valueExpression = baseValueExpression;
if (trim) {
valueExpression =
"(typeof " + baseValueExpression + " === 'string'" +
... | Cross-platform code generation for component v-model | genComponentModel | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function genAssignmentCode (
value,
assignment
) {
var res = parseModel(value);
if (res.key === null) {
return (value + "=" + assignment)
} else {
return ("$set(" + (res.exp) + ", " + (res.key) + ", " + assignment + ")")
}
} | Cross-platform codegen helper for generating v-model value assignment code. | genAssignmentCode | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function parseModel (val) {
// Fix https://github.com/vuejs/vue/pull/7730
// allow v-model="obj.val " (trailing whitespace)
val = val.trim();
len = val.length;
if (val.indexOf('[') < 0 || val.lastIndexOf(']') < len - 1) {
index$1 = val.lastIndexOf('.');
if (index$1 > -1) {
return {
exp:... | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | parseModel | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function next () {
return str.charCodeAt(++index$1)
} | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | next | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function eof () {
return index$1 >= len
} | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | eof | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function isStringStart (chr) {
return chr === 0x22 || chr === 0x27
} | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | isStringStart | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function parseBracket (chr) {
var inBracket = 1;
expressionPos = index$1;
while (!eof()) {
chr = next();
if (isStringStart(chr)) {
parseString(chr);
continue
}
if (chr === 0x5B) { inBracket++; }
if (chr === 0x5D) { inBracket--; }
if (inBracket === 0) {
expressionEndPos = ... | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | parseBracket | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function parseString (chr) {
var stringQuote = chr;
while (!eof()) {
chr = next();
if (chr === stringQuote) {
break
}
}
} | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | parseString | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function model (
el,
dir,
_warn
) {
warn$1 = _warn;
var value = dir.value;
var modifiers = dir.modifiers;
var tag = el.tag;
var type = el.attrsMap.type;
if (process.env.NODE_ENV !== 'production') {
// inputs with type="file" are read only and setting the input's
// value will throw an error.
... | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | model | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function genCheckboxModel (
el,
value,
modifiers
) {
var number = modifiers && modifiers.number;
var valueBinding = getBindingAttr(el, 'value') || 'null';
var trueValueBinding = getBindingAttr(el, 'true-value') || 'true';
var falseValueBinding = getBindingAttr(el, 'false-value') || 'false';
addProp(el, ... | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | genCheckboxModel | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function genRadioModel (
el,
value,
modifiers
) {
var number = modifiers && modifiers.number;
var valueBinding = getBindingAttr(el, 'value') || 'null';
valueBinding = number ? ("_n(" + valueBinding + ")") : valueBinding;
addProp(el, 'checked', ("_q(" + value + "," + valueBinding + ")"));
addHandler(el, ... | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | genRadioModel | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function genSelect (
el,
value,
modifiers
) {
var number = modifiers && modifiers.number;
var selectedVal = "Array.prototype.filter" +
".call($event.target.options,function(o){return o.selected})" +
".map(function(o){var val = \"_value\" in o ? o._value : o.value;" +
"return " + (number ? '_n(val)... | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | genSelect | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function genDefaultModel (
el,
value,
modifiers
) {
var type = el.attrsMap.type;
// warn if v-bind:value conflicts with v-model
// except for inputs with v-bind:type
if (process.env.NODE_ENV !== 'production') {
var value$1 = el.attrsMap['v-bind:value'] || el.attrsMap[':value'];
var typeBinding = ... | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | genDefaultModel | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function normalizeEvents (on) {
/* istanbul ignore if */
if (isDef(on[RANGE_TOKEN])) {
// IE input[type=range] only supports `change` event
var event = isIE ? 'change' : 'input';
on[event] = [].concat(on[RANGE_TOKEN], on[event] || []);
delete on[RANGE_TOKEN];
}
// This was originally intended to... | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | normalizeEvents | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function createOnceHandler$1 (event, handler, capture) {
var _target = target$1; // save current target element in closure
return function onceHandler () {
var res = handler.apply(null, arguments);
if (res !== null) {
remove$2(event, onceHandler, capture, _target);
}
}
} | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | createOnceHandler$1 | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function add$1 (
event,
handler,
capture,
passive
) {
handler = withMacroTask(handler);
target$1.addEventListener(
event,
handler,
supportsPassive
? { capture: capture, passive: passive }
: capture
);
} | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | add$1 | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function remove$2 (
event,
handler,
capture,
_target
) {
(_target || target$1).removeEventListener(
event,
handler._withTask || handler,
capture
);
} | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | remove$2 | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function updateDOMListeners (oldVnode, vnode) {
if (isUndef(oldVnode.data.on) && isUndef(vnode.data.on)) {
return
}
var on = vnode.data.on || {};
var oldOn = oldVnode.data.on || {};
target$1 = vnode.elm;
normalizeEvents(on);
updateListeners(on, oldOn, add$1, remove$2, createOnceHandler$1, vnode.contex... | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | updateDOMListeners | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function updateDOMProps (oldVnode, vnode) {
if (isUndef(oldVnode.data.domProps) && isUndef(vnode.data.domProps)) {
return
}
var key, cur;
var elm = vnode.elm;
var oldProps = oldVnode.data.domProps || {};
var props = vnode.data.domProps || {};
// clone observed objects, as the user probably wants to mu... | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | updateDOMProps | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function shouldUpdateValue (elm, checkVal) {
return (!elm.composing && (
elm.tagName === 'OPTION' ||
isNotInFocusAndDirty(elm, checkVal) ||
isDirtyWithModifiers(elm, checkVal)
))
} | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | shouldUpdateValue | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function isNotInFocusAndDirty (elm, checkVal) {
// return true when textbox (.number and .trim) loses focus and its value is
// not equal to the updated value
var notInFocus = true;
// #6157
// work around IE bug when accessing document.activeElement in an iframe
try { notInFocus = document.activeElement !=... | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | isNotInFocusAndDirty | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function isDirtyWithModifiers (elm, newVal) {
var value = elm.value;
var modifiers = elm._vModifiers; // injected by v-model runtime
if (isDef(modifiers)) {
if (modifiers.lazy) {
// inputs with lazy should only be updated when not in focus
return false
}
if (modifiers.number) {
retur... | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | isDirtyWithModifiers | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function normalizeStyleData (data) {
var style = normalizeStyleBinding(data.style);
// static style is pre-processed into an object during compilation
// and is always a fresh object, so it's safe to merge into it
return data.staticStyle
? extend(data.staticStyle, style)
: style
} | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | normalizeStyleData | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function normalizeStyleBinding (bindingStyle) {
if (Array.isArray(bindingStyle)) {
return toObject(bindingStyle)
}
if (typeof bindingStyle === 'string') {
return parseStyleText(bindingStyle)
}
return bindingStyle
} | Parse a v-model expression into a base path and a final key segment.
Handles both dot-path and possible square brackets.
Possible cases:
- test
- test[key]
- test[test1[key]]
- test["a"][key]
- xxx.test[a[a].test1[key]]
- test.xxx.a["asa"][test1[key]] | normalizeStyleBinding | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function getStyle (vnode, checkChild) {
var res = {};
var styleData;
if (checkChild) {
var childNode = vnode;
while (childNode.componentInstance) {
childNode = childNode.componentInstance._vnode;
if (
childNode && childNode.data &&
(styleData = normalizeStyleData(childNode.dat... | parent component style should be after child's
so that parent component's style could override it | getStyle | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
setProp = function (el, name, val) {
/* istanbul ignore if */
if (cssVarRE.test(name)) {
el.style.setProperty(name, val);
} else if (importantRE.test(val)) {
el.style.setProperty(name, val.replace(importantRE, ''), 'important');
} else {
var normalizedName = normalize(name);
if (Array.isArray(va... | parent component style should be after child's
so that parent component's style could override it | setProp | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function updateStyle (oldVnode, vnode) {
var data = vnode.data;
var oldData = oldVnode.data;
if (isUndef(data.staticStyle) && isUndef(data.style) &&
isUndef(oldData.staticStyle) && isUndef(oldData.style)
) {
return
}
var cur, name;
var el = vnode.elm;
var oldStaticStyle = oldData.staticStyle;
... | parent component style should be after child's
so that parent component's style could override it | updateStyle | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function addClass (el, cls) {
/* istanbul ignore if */
if (!cls || !(cls = cls.trim())) {
return
}
/* istanbul ignore else */
if (el.classList) {
if (cls.indexOf(' ') > -1) {
cls.split(whitespaceRE).forEach(function (c) { return el.classList.add(c); });
} else {
el.classList.add(cls);... | Add class with compatibility for SVG since classList is not supported on
SVG elements in IE | addClass | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function removeClass (el, cls) {
/* istanbul ignore if */
if (!cls || !(cls = cls.trim())) {
return
}
/* istanbul ignore else */
if (el.classList) {
if (cls.indexOf(' ') > -1) {
cls.split(whitespaceRE).forEach(function (c) { return el.classList.remove(c); });
} else {
el.classList.rem... | Remove class with compatibility for SVG since classList is not supported on
SVG elements in IE | removeClass | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function resolveTransition (def$$1) {
if (!def$$1) {
return
}
/* istanbul ignore else */
if (typeof def$$1 === 'object') {
var res = {};
if (def$$1.css !== false) {
extend(res, autoCssTransition(def$$1.name || 'v'));
}
extend(res, def$$1);
return res
} else if (typeof def$$1 === ... | Remove class with compatibility for SVG since classList is not supported on
SVG elements in IE | resolveTransition | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function nextFrame (fn) {
raf(function () {
raf(fn);
});
} | Remove class with compatibility for SVG since classList is not supported on
SVG elements in IE | nextFrame | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function addTransitionClass (el, cls) {
var transitionClasses = el._transitionClasses || (el._transitionClasses = []);
if (transitionClasses.indexOf(cls) < 0) {
transitionClasses.push(cls);
addClass(el, cls);
}
} | Remove class with compatibility for SVG since classList is not supported on
SVG elements in IE | addTransitionClass | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function removeTransitionClass (el, cls) {
if (el._transitionClasses) {
remove(el._transitionClasses, cls);
}
removeClass(el, cls);
} | Remove class with compatibility for SVG since classList is not supported on
SVG elements in IE | removeTransitionClass | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function whenTransitionEnds (
el,
expectedType,
cb
) {
var ref = getTransitionInfo(el, expectedType);
var type = ref.type;
var timeout = ref.timeout;
var propCount = ref.propCount;
if (!type) { return cb() }
var event = type === TRANSITION ? transitionEndEvent : animationEndEvent;
var ended = 0;
v... | Remove class with compatibility for SVG since classList is not supported on
SVG elements in IE | whenTransitionEnds | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
end = function () {
el.removeEventListener(event, onEnd);
cb();
} | Remove class with compatibility for SVG since classList is not supported on
SVG elements in IE | end | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
onEnd = function (e) {
if (e.target === el) {
if (++ended >= propCount) {
end();
}
}
} | Remove class with compatibility for SVG since classList is not supported on
SVG elements in IE | onEnd | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
function getTransitionInfo (el, expectedType) {
var styles = window.getComputedStyle(el);
// JSDOM may return undefined for transition properties
var transitionDelays = (styles[transitionProp + 'Delay'] || '').split(', ');
var transitionDurations = (styles[transitionProp + 'Duration'] || '').split(', ');
var ... | Remove class with compatibility for SVG since classList is not supported on
SVG elements in IE | getTransitionInfo | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.esm.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.esm.js | MIT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.