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 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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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 */ if (isDef(el._enter...
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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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() } /* istanbul ignore if */ if (...
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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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; } beforeLeave && beforeL...
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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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 " + name + " dura...
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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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._length || fn.length) > 1 ...
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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.js
MIT
function actuallySetSelected (el, binding, vm) { var value = binding.value; var isMultiple = el.multiple; if (isMultiple && !Array.isArray(value)) { process.env.NODE_ENV !== 'production' && warn( "<select multiple v-model=\"" + (binding.expression) + "\"> " + "expects an Array value for its bindin...
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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.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.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.js
MIT
function onCompositionEnd (e) { // prevent triggering an input event for no reason if (!e.target.composing) { return } e.target.composing = false; trigger(e.target, 'input'); }
Not type checking this file because flow doesn't like attaching properties to Elements.
onCompositionEnd
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.js
MIT
function trigger (el, type) { var e = document.createEvent('HTMLEvents'); e.initEvent(type, true, true); el.dispatchEvent(e); }
Not type checking this file because flow doesn't like attaching properties to Elements.
trigger
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.js
MIT
function locateNode (vnode) { return vnode.componentInstance && (!vnode.data || !vnode.data.transition) ? locateNode(vnode.componentInstance._vnode) : vnode }
Not type checking this file because flow doesn't like attaching properties to Elements.
locateNode
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.js
MIT
function getRealChild (vnode) { var compOptions = vnode && vnode.componentOptions; if (compOptions && compOptions.Ctor.options.abstract) { return getRealChild(getFirstComponentChild(compOptions.children)) } else { return vnode } }
Not type checking this file because flow doesn't like attaching properties to Elements.
getRealChild
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.js
MIT
function extractTransitionData (comp) { var data = {}; var options = comp.$options; // props for (var key in options.propsData) { data[key] = comp[key]; } // events. // extract listeners and pass them directly to the transition methods var listeners = options._parentListeners; for (var key$1 in li...
Not type checking this file because flow doesn't like attaching properties to Elements.
extractTransitionData
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.js
MIT
function placeholder (h, rawChild) { if (/\d-keep-alive$/.test(rawChild.tag)) { return h('keep-alive', { props: rawChild.componentOptions.propsData }) } }
Not type checking this file because flow doesn't like attaching properties to Elements.
placeholder
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.js
MIT
function hasParentTransition (vnode) { while ((vnode = vnode.parent)) { if (vnode.data.transition) { return true } } }
Not type checking this file because flow doesn't like attaching properties to Elements.
hasParentTransition
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.js
MIT
function isSameChild (child, oldChild) { return oldChild.key === child.key && oldChild.tag === child.tag }
Not type checking this file because flow doesn't like attaching properties to Elements.
isSameChild
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.js
MIT
function callPendingCbs (c) { /* istanbul ignore if */ if (c.elm._moveCb) { c.elm._moveCb(); } /* istanbul ignore if */ if (c.elm._enterCb) { c.elm._enterCb(); } }
Not type checking this file because flow doesn't like attaching properties to Elements.
callPendingCbs
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.js
MIT
function recordPosition (c) { c.data.newPos = c.elm.getBoundingClientRect(); }
Not type checking this file because flow doesn't like attaching properties to Elements.
recordPosition
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.js
MIT
function applyTranslation (c) { var oldPos = c.data.pos; var newPos = c.data.newPos; var dx = oldPos.left - newPos.left; var dy = oldPos.top - newPos.top; if (dx || dy) { c.data.moved = true; var s = c.elm.style; s.transform = s.WebkitTransform = "translate(" + dx + "px," + dy + "px)"; s.trans...
Not type checking this file because flow doesn't like attaching properties to Elements.
applyTranslation
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.runtime.common.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.common.js
MIT
function toRawType (value) { return _toString.call(value).slice(8, -1) }
Get the raw type string of a value, e.g., [object Object].
toRawType
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.runtime.esm.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.esm.js
MIT
function isPlainObject (obj) { return _toString.call(obj) === '[object Object]' }
Strict object type check. Only returns true for plain JavaScript objects.
isPlainObject
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.runtime.esm.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.esm.js
MIT
function isRegExp (v) { return _toString.call(v) === '[object RegExp]' }
Strict object type check. Only returns true for plain JavaScript objects.
isRegExp
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.runtime.esm.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.esm.js
MIT
function isValidArrayIndex (val) { var n = parseFloat(String(val)); return n >= 0 && Math.floor(n) === n && isFinite(val) }
Check if val is a valid array index.
isValidArrayIndex
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.runtime.esm.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.esm.js
MIT
function toString (val) { return val == null ? '' : typeof val === 'object' ? JSON.stringify(val, null, 2) : String(val) }
Convert a value to a string that is actually rendered.
toString
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.runtime.esm.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.runtime.esm.js
MIT