Skip to content

Commit

Permalink
Merge branch 'master' of github.com:yorilu/anole
Browse files Browse the repository at this point in the history
  • Loading branch information
NeptunKid committed Jun 12, 2015
2 parents 944f4d8 + 2b175e0 commit f2113f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions anole.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@
var nextScene = this._config.sceneQueue[sceneIndex];
var fileName = nextScene.fileName;
var res = nextScene.res || [];

if(typeof this._sceneNameIndexMap[fileName] != 'undefined'){
return;
}

this._sceneNameIndexMap[fileName] = sceneIndex;

if(this._currentScene == sceneIndex){
Expand Down
2 changes: 1 addition & 1 deletion demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
baseUrl:baseUrl,// root url
resoureUrl: resoureUrl,// resoure url like jpg/mp3
resource: resource,//resource
maxQueueLength: 10,//TODO load serval scenes at first
maxQueueLength: 1,//TODO load serval scenes at first
sceneQueue: sceneQueue,//anime scene queue
autoPlay: false,//auto play with no event
flipType: 'click',//flip type eg:click, swipe, wheel
Expand Down

0 comments on commit f2113f4

Please sign in to comment.