Skip to content

Commit

Permalink
Fix Fullscreen events on IE 11.
Browse files Browse the repository at this point in the history
  • Loading branch information
shunter committed Dec 22, 2013
1 parent 2733f78 commit 1c0cb82
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Source/Core/Fullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 1c0cb82

Please sign in to comment.