Skip to content

Commit c637dd3

Browse files
authored
Merge pull request CreateJS#1042 from owendwyer/patch-1
Prevent error on Touch.disable(stage)
2 parents 5366838 + d6f7f58 commit c637dd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/easeljs/ui/Touch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ this.createjs = this.createjs||{};
110110
* @static
111111
**/
112112
Touch.disable = function(stage) {
113-
if (!stage) { return; }
113+
if (!stage||!stage.__touch) { return; }
114114
if ('ontouchstart' in window) { Touch._IOS_disable(stage); }
115115
else if (window.PointerEvent || window.MSPointerEvent) { Touch._IE_disable(stage); }
116116

0 commit comments

Comments
 (0)