"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core/instance/render-helpers/bind-dynamic-keys.js" between
vue-2.6.11.tar.gz and vue-2.6.12.tar.gz

About: Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

bind-dynamic-keys.js  (vue-2.6.11):bind-dynamic-keys.js  (vue-2.6.12)
/* @flow */ /* @flow */
// helper to process dynamic keys for dynamic arguments in v-bind and v-on. // helper to process dynamic keys for dynamic arguments in v-bind and v-on.
// For example, the following template: // For example, the following template:
// //
// <div id="foo" :[key]="value"> // <div id="app" :[key]="value">
// //
// compiles to the following: // compiles to the following:
// //
// _c('div', { attrs: bindDynamicKeys({ "id": "app" }, [key, value]) }) // _c('div', { attrs: bindDynamicKeys({ "id": "app" }, [key, value]) })
import { warn } from 'core/util/debug' import { warn } from 'core/util/debug'
export function bindDynamicKeys (baseObj: Object, values: Array<any>): Object { export function bindDynamicKeys (baseObj: Object, values: Array<any>): Object {
for (let i = 0; i < values.length; i += 2) { for (let i = 0; i < values.length; i += 2) {
const key = values[i] const key = values[i]
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)