Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
Description
The handleEnd method, which is called after speaking has finished, resets the model by replacing it with false values. However since this replaces the model, if there are custom properties added to the model (e.g. enabled used by the enactor), they will be removed.
current method.
fluid.textToSpeech.handleEnd = function (that) {
if (!that.queue.length) {
that.applier.change("",
);
}
};
The correct action should be to only change the values it cares about. Perhaps by merging these values with the current model and passing this into to the applier call.
fluid.textToSpeech.handleEnd = function (that) {
var resetValues =
;
if (!that.queue.length) {
var newModel = $.extend({}, that.model, resetValues);
that.applier.change("", newModel);
}
};