remove unnecessary declaration

pull/3985/head
Nicholas Lee 2017-04-04 17:32:27 +09:00 committed by cinwell.li
parent 379c3a5d64
commit 5234a58e57
1 changed files with 1 additions and 3 deletions

View File

@ -31,12 +31,10 @@ exports.destroyVM = function(vm) {
* @return {Object} vm * @return {Object} vm
*/ */
exports.createVue = function(Compo, mounted = false) { exports.createVue = function(Compo, mounted = false) {
const elm = createElm();
if (Object.prototype.toString.call(Compo) === '[object String]') { if (Object.prototype.toString.call(Compo) === '[object String]') {
Compo = { template: Compo }; Compo = { template: Compo };
} }
return new Vue(Compo).$mount(mounted === false ? null : elm); return new Vue(Compo).$mount(mounted === false ? null : createElm());
}; };
/** /**