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 activateChildComponent (vm, direct) {
if (direct) {
vm._directInactive = false;
if (isInInactiveTree(vm)) {
return
}
} else if (vm._directInactive) {
return
}
if (vm._inactive || vm._inactive === null) {
vm._inactive = false;
for (var i = 0; i < vm.$c... | Runtime helper for resolving raw children VNodes into a slot object. | activateChildComponent | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function deactivateChildComponent (vm, direct) {
if (direct) {
vm._directInactive = true;
if (isInInactiveTree(vm)) {
return
}
}
if (!vm._inactive) {
vm._inactive = true;
for (var i = 0; i < vm.$children.length; i++) {
deactivateChildComponent(vm.$children[i]);
... | Runtime helper for resolving raw children VNodes into a slot object. | deactivateChildComponent | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function callHook (vm, hook) {
// #7573 disable dep collection when invoking lifecycle hooks
pushTarget();
var handlers = vm.$options[hook];
if (handlers) {
for (var i = 0, j = handlers.length; i < j; i++) {
try {
handlers[i].call(vm);
} catch (e) {
handleError(... | Runtime helper for resolving raw children VNodes into a slot object. | callHook | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function flushSchedulerQueue () {
flushing = true;
var watcher, id;
// Sort queue before flush.
// This ensures that:
// 1. Components are updated from parent to child. (because parent is always
// created before the child)
// 2. A component's user watchers are run before its render watc... | Flush both queues and run the watchers. | flushSchedulerQueue | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function callUpdatedHooks (queue) {
var i = queue.length;
while (i--) {
var watcher = queue[i];
var vm = watcher.vm;
if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
callHook(vm, 'updated');
}
}
} | Flush both queues and run the watchers. | callUpdatedHooks | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function queueActivatedComponent (vm) {
// setting _inactive to false here so that a render function can
// rely on checking whether it's in an inactive tree (e.g. router-view)
vm._inactive = false;
activatedChildren.push(vm);
} | Queue a kept-alive component that was activated during patch.
The queue will be processed after the entire tree has been patched. | queueActivatedComponent | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function callActivatedHooks (queue) {
for (var i = 0; i < queue.length; i++) {
queue[i]._inactive = true;
activateChildComponent(queue[i], true /* true */);
}
} | Queue a kept-alive component that was activated during patch.
The queue will be processed after the entire tree has been patched. | callActivatedHooks | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function queueWatcher (watcher) {
var id = watcher.id;
if (has[id] == null) {
has[id] = true;
if (!flushing) {
queue.push(watcher);
} else {
// if already flushing, splice the watcher based on its id
// if already past its id, it will be run next immediately.
va... | Push a watcher into the watcher queue.
Jobs with duplicate IDs will be skipped unless it's
pushed when the queue is being flushed. | queueWatcher | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
Watcher = function Watcher (
vm,
expOrFn,
cb,
options,
isRenderWatcher
) {
this.vm = vm;
if (isRenderWatcher) {
vm._watcher = this;
}
vm._watchers.push(this);
// options
if (options) {
this.deep = !!options.deep;
this.user = !!options.user;
this.lazy... | A watcher parses an expression, collects dependencies,
and fires callback when the expression value changes.
This is used for both the $watch() api and directives. | Watcher | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function proxy (target, sourceKey, key) {
sharedPropertyDefinition.get = function proxyGetter () {
return this[sourceKey][key]
};
sharedPropertyDefinition.set = function proxySetter (val) {
this[sourceKey][key] = val;
};
Object.defineProperty(target, key, sharedPropertyDefinition);
} | Remove self from all dependencies' subscriber list. | proxy | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
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)... | Remove self from all dependencies' subscriber list. | initState | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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;
... | Remove self from all dependencies' subscriber list. | initProps | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
loop = function ( key ) {
keys.push(key);
var value = validateProp(key, propsOptions, propsData, vm);
/* istanbul ignore else */
{
var hyphenatedKey = hyphenate(key);
if (isReservedAttribute(hyphenatedKey) ||
config.isReservedAttr(hyphenatedKey)) {
warn(
... | Remove self from all dependencies' subscriber list. | loop | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function initData (vm) {
var data = vm.$options.data;
data = vm._data = typeof data === 'function'
? getData(data, vm)
: data || {};
if (!isPlainObject(data)) {
data = {};
warn(
'data functions should return an object:\n' +
'https://vuejs.org/v2/guide/components.html#... | Remove self from all dependencies' subscriber list. | initData | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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 userDe... | Remove self from all dependencies' subscriber list. | initComputed | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function defineComputed (
target,
key,
userDef
) {
var shouldCache = !isServerRendering();
if (typeof userDef === 'function') {
sharedPropertyDefinition.get = shouldCache
? createComputedGetter(key)
: createGetterInvoker(userDef);
sharedPropertyDefinition.set = noop;
... | Remove self from all dependencies' subscriber list. | defineComputed | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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();
}
retur... | Remove self from all dependencies' subscriber list. | createComputedGetter | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function initMethods (vm, methods) {
var props = vm.$options.props;
for (var key in methods) {
{
if (typeof methods[key] !== 'function') {
warn(
"Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
"Did you reference ... | Remove self from all dependencies' subscriber list. | initMethods | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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 = ... | Remove self from all dependencies' subscriber list. | stateMixin | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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 */
{
defineReactive$$1(vm, key, result[key], function () {
warn(
... | Remove self from all dependencies' subscriber list. | initInjections | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.... | Remove self from all dependencies' subscriber list. | resolveInject | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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 ... | Runtime helper for rendering v-for lists. | renderList | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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 (ma... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function bindObjectProps (
data,
tag,
value,
asProp,
isSync
) {
if (value) {
if (!isObject(value)) {
warn(
'v-bind without argument expects an Object or Array value',
this
);
} else {
if (Array.isArray(value)) {
value = toObject... | Runtime helper for merging v-bind="object" into a VNode's data. | bindObjectProps | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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)
... | Runtime helper for merging v-bind="object" into a VNode's data. | loop | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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, ren... | Runtime helper for rendering static trees. | renderStatic | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function bindObjectListeners (data, value) {
if (value) {
if (!isPlainObject(value)) {
warn(
'v-on without argument expects an Object value',
this
);
} else {
var on = data.on = data.on ? extend({}, data.on) : {};
for (var key in value) {
var... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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 = checkKeyCo... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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, propsD... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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 = cloneVNod... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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 ... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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 in... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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)) {
... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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 call... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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 ... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function _createElement (
context,
tag,
data,
children,
normalizationType
) {
if (isDef(data) && isDef((data).__ob__)) {
warn(
"Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
'Always create fresh vnode data objects in each render!',
... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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;
... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.rende... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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 (config.performance && mark) {
startTag = "vue-perf-start:" + (vm._uid);
endTag = "vue-perf-end:" + ... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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 vnodeComponentOpt... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function Vue (options) {
if (!(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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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(thi... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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 = func... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function query (el) {
if (typeof el === 'string') {
var selected = document.querySelector(el);
if (!selected) {
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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.setAttrib... | Query an element selector if it's not an element already. | createElement$1 | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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 (re... | Query an element selector if it's not an element already. | registerRef | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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 = normalizeStyle... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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 (... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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 = o... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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 {
... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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
} els... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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;
... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.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(', ')... | 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.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function getTimeout (delays, durations) {
/* istanbul ignore next */
while (delays.length < durations.length) {
delays = delays.concat(delays);
}
return Math.max.apply(null, durations.map(function (d, i) {
return toMs(d) + toMs(delays[i])
}))
} | Remove class with compatibility for SVG since classList is not supported on
SVG elements in IE | getTimeout | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function toMs (s) {
return Number(s.slice(0, -1).replace(',', '.')) * 1000
} | Remove class with compatibility for SVG since classList is not supported on
SVG elements in IE | toMs | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function enter (vnode, toggleDisplay) {
var el = vnode.elm;
// call leave callback now
if (isDef(el._leaveCb)) {
el._leaveCb.cancelled = true;
el._leaveCb();
}
var data = resolveTransition(vnode.data.transition);
if (isUndef(data)) {
return
}
/* istanbul ignore if */... | Remove class with compatibility for SVG since classList is not supported on
SVG elements in IE | enter | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function leave (vnode, rm) {
var el = vnode.elm;
// call enter callback now
if (isDef(el._enterCb)) {
el._enterCb.cancelled = true;
el._enterCb();
}
var data = resolveTransition(vnode.data.transition);
if (isUndef(data) || el.nodeType !== 1) {
return rm()
}
/* istanb... | Remove class with compatibility for SVG since classList is not supported on
SVG elements in IE | leave | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function performLeave () {
// the delayed leave may have already been cancelled
if (cb.cancelled) {
return
}
// record leaving element
if (!vnode.data.show && el.parentNode) {
(el.parentNode._pending || (el.parentNode._pending = {}))[(vnode.key)] = vnode;
}
befo... | Remove class with compatibility for SVG since classList is not supported on
SVG elements in IE | performLeave | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function checkDuration (val, name, vnode) {
if (typeof val !== 'number') {
warn(
"<transition> explicit " + name + " duration is not a valid number - " +
"got " + (JSON.stringify(val)) + ".",
vnode.context
);
} else if (isNaN(val)) {
warn(
"<transition> explicit... | Remove class with compatibility for SVG since classList is not supported on
SVG elements in IE | checkDuration | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function isValidDuration (val) {
return typeof val === 'number' && !isNaN(val)
} | Remove class with compatibility for SVG since classList is not supported on
SVG elements in IE | isValidDuration | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function getHookArgumentsLength (fn) {
if (isUndef(fn)) {
return false
}
var invokerFns = fn.fns;
if (isDef(invokerFns)) {
// invoker
return getHookArgumentsLength(
Array.isArray(invokerFns)
? invokerFns[0]
: invokerFns
)
} else {
return (fn.... | Normalize a transition hook's argument length. The hook may be:
- a merged hook (invoker) with the original in .fns
- a wrapped component method (check ._length)
- a plain function (.length) | getHookArgumentsLength | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function _enter (_, vnode) {
if (vnode.data.show !== true) {
enter(vnode);
}
} | Normalize a transition hook's argument length. The hook may be:
- a merged hook (invoker) with the original in .fns
- a wrapped component method (check ._length)
- a plain function (.length) | _enter | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function setSelected (el, binding, vm) {
actuallySetSelected(el, binding, vm);
/* istanbul ignore if */
if (isIE || isEdge) {
setTimeout(function () {
actuallySetSelected(el, binding, vm);
}, 0);
}
} | Not type checking this file because flow doesn't like attaching
properties to Elements. | setSelected | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function actuallySetSelected (el, binding, vm) {
var value = binding.value;
var isMultiple = el.multiple;
if (isMultiple && !Array.isArray(value)) {
warn(
"<select multiple v-model=\"" + (binding.expression) + "\"> " +
"expects an Array value for its binding, but got " + (Object.protot... | Not type checking this file because flow doesn't like attaching
properties to Elements. | actuallySetSelected | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function hasNoMatchingOption (value, options) {
return options.every(function (o) { return !looseEqual(o, value); })
} | Not type checking this file because flow doesn't like attaching
properties to Elements. | hasNoMatchingOption | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function getValue (option) {
return '_value' in option
? option._value
: option.value
} | Not type checking this file because flow doesn't like attaching
properties to Elements. | getValue | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
function onCompositionStart (e) {
e.target.composing = true;
} | Not type checking this file because flow doesn't like attaching
properties to Elements. | onCompositionStart | javascript | syzoj/syzoj | static/cdnjs/vue/2.5.21/vue.runtime.js | https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.js | MIT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.