Issue fixes for audio preload and Scale9Sprite.FillType (#2707)

* fix audio reload error, more preload call won't create more WebAudioElement yet.

* fix JSB cc.Scale9Sprite.FillType error.
This commit is contained in:
chenxianyin
2018-05-21 14:09:43 +08:00
committed by pandamicro
parent af02e776e4
commit bc42a8a7cf
2 changed files with 5 additions and 3 deletions
+3
View File
@@ -100,6 +100,9 @@ Audio.State = {
if (this._element)
return;
if (this._element)
return;
var item = cc.loader.getItem(src);
if (!item) {
+2 -3
View File
@@ -59,9 +59,8 @@ cc.Scale9Sprite.RenderingType = cc.Enum({
});
cc.Scale9Sprite.FillType = cc.Enum({
Horizontal: 0,
Vertical: 1,
//todo implement this
HORIZONTAL: 0,
VERTICAL: 1,
RADIAL:2,
});