Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
1.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshu committed Apr 21, 2017
1 parent 34fb825 commit 1e1902c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/vue-krpano.common.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/vue-krpano.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-krpano",
"version": "1.4.3",
"version": "1.4.4",
"description": "",
"main": "dist/vue-krpano.common.js",
"scripts": {
Expand Down
8 changes: 2 additions & 6 deletions src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,10 @@ let config = {
loadScene(){
let scene = this.scene;
if (this.krpanoObj) {
if (scene) {
let str = `if(scene[${scene}]===null,
let str = `if(scene[${scene}]===null,
loadscene(get(scene[0].name),null,MERGE,BLEND(0.5)),
loadscene(${scene},null,MERGE,BLEND(0.5)))`;
this.krpanoObj.call(str);
} else {
this.krpanoObj.call("loadscene(get(scene[0].name),null,MERGE,BLEND(0.5))");
}
this.krpanoObj.call(str);

this.log("scene changed: " + scene);
this.$emit("sceneChanged", scene);
Expand Down

0 comments on commit 1e1902c

Please sign in to comment.