180909
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
4 additions and
4 deletions
-
packages/weex-vue-framework/index.js
-
src/platforms/weex/entry-framework.js
-
test/unit/features/component/component-async.spec.js
-
test/unit/features/directives/on.spec.js
|
@ -28,7 +28,7 @@ function createInstanceContext ( |
|
|
data: data |
|
|
data: data |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
// Each instance has a independent `Vue` module instance
|
|
|
// Each instance has an independent `Vue` module instance
|
|
|
var Vue = instance.Vue = createVueModuleInstance(instanceId, weex); |
|
|
var Vue = instance.Vue = createVueModuleInstance(instanceId, weex); |
|
|
|
|
|
|
|
|
// DEPRECATED
|
|
|
// DEPRECATED
|
|
|
|
@ -22,7 +22,7 @@ export function createInstanceContext ( |
|
|
data |
|
|
data |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Each instance has a independent `Vue` module instance
|
|
|
// Each instance has an independent `Vue` module instance
|
|
|
const Vue = instance.Vue = createVueModuleInstance(instanceId, weex) |
|
|
const Vue = instance.Vue = createVueModuleInstance(instanceId, weex) |
|
|
|
|
|
|
|
|
// DEPRECATED
|
|
|
// DEPRECATED
|
|
|
|
@ -7,7 +7,7 @@ describe('Component async', () => { |
|
|
const oldClearTimeout = window.clearTimeout; |
|
|
const oldClearTimeout = window.clearTimeout; |
|
|
|
|
|
|
|
|
// will contain pending timeouts set during the test iteration
|
|
|
// will contain pending timeouts set during the test iteration
|
|
|
// will contain the id of the timeout as the key, and the the millisecond timeout as the value
|
|
|
// will contain the id of the timeout as the key, and the millisecond timeout as the value
|
|
|
// this helps to identify the timeout that is still pending
|
|
|
// this helps to identify the timeout that is still pending
|
|
|
let timeoutsPending = {}; |
|
|
let timeoutsPending = {}; |
|
|
|
|
|
|
|
|
|
@ -31,7 +31,7 @@ describe('Directive v-on', () => { |
|
|
expect(event.type).toBe('click') |
|
|
expect(event.type).toBe('click') |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
it('should bind event to a inline statement', () => { |
|
|
it('should bind event to an inline statement', () => { |
|
|
vm = new Vue({ |
|
|
vm = new Vue({ |
|
|
el, |
|
|
el, |
|
|
template: '<div v-on:click="foo(1,2,3,$event)"></div>', |
|
|
template: '<div v-on:click="foo(1,2,3,$event)"></div>', |
|
|