fabiobiondi / angular-fullscreen

AngularJS HTML5 Fullscreen
214 stars 107 forks source link

Coercing docElm into a boolean #26

Closed ACReeser closed 10 years ago

ACReeser commented 10 years ago

At least with Chrome, isSupported can return the requestFullScreen function instead of a boolean.

This Plunker illustrates that currently isSupported returns a pointer to a (possibly vendor-prefixed) requestFullscreen function.

This Plunker illustrates that the change outputs only true/false values.