Skip to content

Commit

Permalink
dispatch the fullscreen event
Browse files Browse the repository at this point in the history
  • Loading branch information
clemos committed Dec 5, 2013
1 parent 9af0e48 commit ddf0b19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cocktail/core/html/HTMLDocument.hx
Expand Up @@ -1378,6 +1378,7 @@ class HTMLDocument extends Document
//fire a fullscreen event
var fullscreenEvent:Event = new Event();
fullscreenEvent.initEvent(EventConstants.FULL_SCREEN_CHANGE, true, false);
dispatchEvent( fullscreenEvent );

//refresh cascade as the document's stylesheet might have fullscreen pseudo class
cascadeDocument();
Expand Down Expand Up @@ -1434,6 +1435,7 @@ class HTMLDocument extends Document
//fire fullscreen event
var fullscreenEvent:Event = new Event();
fullscreenEvent.initEvent(EventConstants.FULL_SCREEN_CHANGE, true, false);
dispatchEvent( fullscreenEvent );

//refresh cascade as the document's stylesheet might have fullscreen pseudo class
cascadeDocument();
Expand Down

0 comments on commit ddf0b19

Please sign in to comment.