define(['Modernizr', 'domPrefixes'], function( Modernizr, domPrefixes ) {
  Modernizr.addTest('fullscreen',function() {
    for (var i = 0; i < domPrefixes.length; i++) {
      if( document[domPrefixes[i].toLowerCase() + 'CancelFullScreen'])
        return true;
    }
    return !!document['cancelFullScreen'] || false;
  });

  // http://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/ControllingMediaWithJavaScript/ControllingMediaWithJavaScript.html#//apple_ref/doc/uid/TP40009523-CH3-SW20
  // https://developer.mozilla.org/en/API/Fullscreen
});

@@ -71,262 +71,8 @@
 ) %7B%0A
-  Modernizr.addTest('fullscreen',function() %7B%0A    for (var i = 0; i %3C domPrefixes.length; i++) %7B%0A      if( document%5BdomPrefixes%5Bi%5D.toLowerCase() + 'CancelFullScreen'%5D)%0A        return true;%0A    %7D%0A    return !!document%5B'cancelFullScreen'%5D %7C%7C false;%0A  %7D);%0A%0A
   //
@@ -334,12 +334,212 @@
 lscreen%0A
+  // github.com/Modernizr/Modernizr/issues/739%0A  Modernizr.addTest('fullscreen', !!(Modernizr.prefixed(%22exitFullscreen%22, document, false) %7C%7C Modernizr.prefixed(%22cancelFullScreen%22, document, false)));%0A
 %7D);%0A

Update detect for fullscreen api. Fixes #739