Skip to content

Commit a50a6f0

Browse files
committed
Fixed issue with deprecated play() fallback
1 parent b2650b0 commit a50a6f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/soundjs/data/PlayPropsConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ this.createjs = this.createjs || {};
156156
if (typeof(value) === "string") {
157157
// Handle the old API gracefully.
158158
console && (console.warn || console.log)("Deprecated behaviour. Sound.play takes a configuration object instead of individual arguments. See docs for info.");
159-
return createjs.PlayPropsConfig().set({interrupt:value});
159+
return new createjs.PlayPropsConfig().set({interrupt:value});
160160
} else if (value == null || value instanceof s || value instanceof Object) {
161161
return new createjs.PlayPropsConfig().set(value);
162162
} else if (value == null) {

0 commit comments

Comments
 (0)