From 1c0cb82c0bacb9640ed8fc2e09d5f065ba05411b Mon Sep 17 00:00:00 2001 From: Scott Hunter Date: Sun, 22 Dec 2013 16:09:26 -0500 Subject: [PATCH] Fix Fullscreen events on IE 11. --- Source/Core/Fullscreen.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/Core/Fullscreen.js b/Source/Core/Fullscreen.js index 14d3ff347dc9..dc26dddd12b7 100644 --- a/Source/Core/Fullscreen.js +++ b/Source/Core/Fullscreen.js @@ -103,11 +103,19 @@ define(['./defined'], function(defined) { name = prefix + 'fullscreenchange'; // event names do not have 'on' in the front, but the property on the document does if (defined(document['on' + name])) { + //except on IE + if (prefix === 'ms') { + name = 'MSFullscreenChange'; + } _names.fullscreenchange = name; } name = prefix + 'fullscreenerror'; if (defined(document['on' + name])) { + //except on IE + if (prefix === 'ms') { + name = 'MSFullscreenError'; + } _names.fullscreenerror = name; } }