fix error tips in web

This commit is contained in:
jianglong0156 2015-08-07 18:29:45 +08:00
parent 881adf6f36
commit 99a52a34cb
1 changed files with 6 additions and 3 deletions

View File

@ -109,10 +109,10 @@ var Slider = ccui.Slider.extend({
var AudioControlTest = AudioEngineBase.extend({ var AudioControlTest = AudioEngineBase.extend({
_title:"Audio control test", _title:"Audio control test",
_audioID: jsb.AudioEngine.INVALID_AUDIO_ID, _audioID: -1,
_loopEnabled: false, _loopEnabled: false,
_volume: 1, _volume: 1,
_duration: jsb.AudioEngine.TIME_UNKNOWN, _duration: -1,
_timeRatio: 0, _timeRatio: 0,
_updateTimeSlider: true, _updateTimeSlider: true,
@ -121,7 +121,10 @@ var AudioControlTest = AudioEngineBase.extend({
ctor: function () { ctor: function () {
this._super(); this._super();
this._audioID = jsb.AudioEngine.INVALID_AUDIO_ID;
this._duration = jsb.AudioEngine.TIME_UNKNOWN;
var fontFilePath = "fonts/arial.ttf"; var fontFilePath = "fonts/arial.ttf";
var layerSize = this.getContentSize(); var layerSize = this.getContentSize();