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; ...
Remove self from all dependencies' subscriber list.
defineComputed
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function genComponentModel ( el, value, modifiers ) { var ref = modifiers || {}; var number = ref.number; var trim = ref.trim; var baseValueExpression = '$$v'; var valueExpression = baseValueExpression; if (trim) { valueExpression = "(typeof " + baseValueExpression +...
Cross-platform code generation for component v-model
genComponentModel
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function genAssignmentCode ( value, assignment ) { var res = parseModel(value); if (res.key === null) { return (value + "=" + assignment) } else { return ("$set(" + (res.exp) + ", " + (res.key) + ", " + assignment + ")") } }
Cross-platform codegen helper for generating v-model value assignment code.
genAssignmentCode
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function parseModel (val) { // Fix https://github.com/vuejs/vue/pull/7730 // allow v-model="obj.val " (trailing whitespace) val = val.trim(); len = val.length; if (val.indexOf('[') < 0 || val.lastIndexOf(']') < len - 1) { index$1 = val.lastIndexOf('.'); if (index$1 > -1) { retur...
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
parseModel
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function next () { return str.charCodeAt(++index$1) }
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
next
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function eof () { return index$1 >= len }
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
eof
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function isStringStart (chr) { return chr === 0x22 || chr === 0x27 }
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
isStringStart
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function parseBracket (chr) { var inBracket = 1; expressionPos = index$1; while (!eof()) { chr = next(); if (isStringStart(chr)) { parseString(chr); continue } if (chr === 0x5B) { inBracket++; } if (chr === 0x5D) { inBracket--; } if (inBracket === 0) { ...
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
parseBracket
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function parseString (chr) { var stringQuote = chr; while (!eof()) { chr = next(); if (chr === stringQuote) { break } } }
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
parseString
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function model ( el, dir, _warn ) { warn$1 = _warn; var value = dir.value; var modifiers = dir.modifiers; var tag = el.tag; var type = el.attrsMap.type; { // inputs with type="file" are read only and setting the input's // value will throw an error. if (tag === '...
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
model
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function genCheckboxModel ( el, value, modifiers ) { var number = modifiers && modifiers.number; var valueBinding = getBindingAttr(el, 'value') || 'null'; var trueValueBinding = getBindingAttr(el, 'true-value') || 'true'; var falseValueBinding = getBindingAttr(el, 'false-value') || 'false'...
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
genCheckboxModel
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function genRadioModel ( el, value, modifiers ) { var number = modifiers && modifiers.number; var valueBinding = getBindingAttr(el, 'value') || 'null'; valueBinding = number ? ("_n(" + valueBinding + ")") : valueBinding; addProp(el, 'checked', ("_q(" + value + "," + valueBinding + ")")); ...
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
genRadioModel
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function genSelect ( el, value, modifiers ) { var number = modifiers && modifiers.number; var selectedVal = "Array.prototype.filter" + ".call($event.target.options,function(o){return o.selected})" + ".map(function(o){var val = \"_value\" in o ? o._value : o.value;" + "return " + ...
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
genSelect
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function genDefaultModel ( el, value, modifiers ) { var type = el.attrsMap.type; // warn if v-bind:value conflicts with v-model // except for inputs with v-bind:type { var value$1 = el.attrsMap['v-bind:value'] || el.attrsMap[':value']; var typeBinding = el.attrsMap['v-bind:typ...
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
genDefaultModel
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function normalizeEvents (on) { /* istanbul ignore if */ if (isDef(on[RANGE_TOKEN])) { // IE input[type=range] only supports `change` event var event = isIE ? 'change' : 'input'; on[event] = [].concat(on[RANGE_TOKEN], on[event] || []); delete on[RANGE_TOKEN]; } // This was origin...
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
normalizeEvents
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function createOnceHandler$1 (event, handler, capture) { var _target = target$1; // save current target element in closure return function onceHandler () { var res = handler.apply(null, arguments); if (res !== null) { remove$2(event, onceHandler, capture, _target); } } }
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
createOnceHandler$1
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function add$1 ( event, handler, capture, passive ) { handler = withMacroTask(handler); target$1.addEventListener( event, handler, supportsPassive ? { capture: capture, passive: passive } : capture ); }
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
add$1
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function remove$2 ( event, handler, capture, _target ) { (_target || target$1).removeEventListener( event, handler._withTask || handler, capture ); }
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
remove$2
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function updateDOMListeners (oldVnode, vnode) { if (isUndef(oldVnode.data.on) && isUndef(vnode.data.on)) { return } var on = vnode.data.on || {}; var oldOn = oldVnode.data.on || {}; target$1 = vnode.elm; normalizeEvents(on); updateListeners(on, oldOn, add$1, remove$2, createOnceHandler...
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
updateDOMListeners
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function updateDOMProps (oldVnode, vnode) { if (isUndef(oldVnode.data.domProps) && isUndef(vnode.data.domProps)) { return } var key, cur; var elm = vnode.elm; var oldProps = oldVnode.data.domProps || {}; var props = vnode.data.domProps || {}; // clone observed objects, as the user prob...
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
updateDOMProps
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function shouldUpdateValue (elm, checkVal) { return (!elm.composing && ( elm.tagName === 'OPTION' || isNotInFocusAndDirty(elm, checkVal) || isDirtyWithModifiers(elm, checkVal) )) }
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
shouldUpdateValue
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function isNotInFocusAndDirty (elm, checkVal) { // return true when textbox (.number and .trim) loses focus and its value is // not equal to the updated value var notInFocus = true; // #6157 // work around IE bug when accessing document.activeElement in an iframe try { notInFocus = document.acti...
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
isNotInFocusAndDirty
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function isDirtyWithModifiers (elm, newVal) { var value = elm.value; var modifiers = elm._vModifiers; // injected by v-model runtime if (isDef(modifiers)) { if (modifiers.lazy) { // inputs with lazy should only be updated when not in focus return false } if (modifiers.numbe...
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
isDirtyWithModifiers
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function normalizeStyleData (data) { var style = normalizeStyleBinding(data.style); // static style is pre-processed into an object during compilation // and is always a fresh object, so it's safe to merge into it return data.staticStyle ? extend(data.staticStyle, style) : style }
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
normalizeStyleData
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT
function normalizeStyleBinding (bindingStyle) { if (Array.isArray(bindingStyle)) { return toObject(bindingStyle) } if (typeof bindingStyle === 'string') { return parseStyleText(bindingStyle) } return bindingStyle }
Parse a v-model expression into a base path and a final key segment. Handles both dot-path and possible square brackets. Possible cases: - test - test[key] - test[test1[key]] - test["a"][key] - xxx.test[a[a].test1[key]] - test.xxx.a["asa"][test1[key]]
normalizeStyleBinding
javascript
syzoj/syzoj
static/cdnjs/vue/2.5.21/vue.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.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.js
https://github.com/syzoj/syzoj/blob/master/static/cdnjs/vue/2.5.21/vue.js
MIT