Skip to content

Commit

Permalink
Generate dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 13, 2017
1 parent db980c3 commit 4e3b3a9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 9 additions & 4 deletions dist/screenfull.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* screenfull
* v3.0.0 - 2015-11-24
* v3.0.2 - 2017-03-13
* (c) Sindre Sorhus; MIT License
*/
(function () {
Expand All @@ -11,7 +11,6 @@

var fn = (function () {
var val;
var valLength;

var fnMap = [
[
Expand Down Expand Up @@ -67,7 +66,7 @@
for (; i < l; i++) {
val = fnMap[i];
if (val && val[1] in document) {
for (i = 0, valLength = val.length; i < valLength; i++) {
for (i = 0; i < val.length; i++) {
ret[fnMap[0][i]] = val[i];
}
return ret;
Expand All @@ -87,7 +86,7 @@
// keyboard in fullscreen even though it doesn't.
// Browser sniffing, since the alternative with
// setTimeout is even worse.
if (/5\.1[\.\d]* Safari/.test(navigator.userAgent)) {
if (/5\.1[.\d]* Safari/.test(navigator.userAgent)) {
elem[request]();
} else {
elem[request](keyboardAllowed && Element.ALLOW_KEYBOARD_INPUT);
Expand All @@ -103,6 +102,12 @@
this.request(elem);
}
},
onchange: function (callback) {
document.addEventListener(fn.fullscreenchange, callback, false);
},
onerror: function (callback) {
document.addEventListener(fn.fullscreenerror, callback, false);
},
raw: fn
};

Expand Down
4 changes: 2 additions & 2 deletions dist/screenfull.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4e3b3a9

Please sign in to comment.