Skip to content

Commit c0b7eaa

Browse files
committed
refactor: remove getRootView option from $start
1 parent 53ee639 commit c0b7eaa

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

platform/nativescript/runtime/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import platformComponents from './components/index'
1111
import platformDirectives from './directives/index'
1212

1313
import { mustUseProp, isReservedTag, isUnknownElement } from '../util/index'
14-
import { ensurePage } from '../util'
1514

1615
export const VUE_VM_REF = '__vue_vm_ref__'
1716

@@ -56,7 +55,7 @@ Vue.prototype.$mount = function(el, hydrating) {
5655
return mountComponent(this, el, hydrating)
5756
}
5857

59-
Vue.prototype.$start = function({ getRootView }) {
58+
Vue.prototype.$start = function() {
6059
let self = this
6160
const AppConstructor = Vue.extend(this.$options)
6261

@@ -67,10 +66,7 @@ Vue.prototype.$start = function({ getRootView }) {
6766
}
6867

6968
self.$mount()
70-
args.root =
71-
typeof getRootView === 'function'
72-
? getRootView(self)
73-
: ensurePage(self.$el, self)
69+
args.root = self.$el.nativeView
7470
})
7571

7672
run()

0 commit comments

Comments
 (0)