vendor/assets/javascripts/screenfull.js in jquery-screenfull-rails-2.0.0 vs vendor/assets/javascripts/screenfull.js in jquery-screenfull-rails-3.0.0

- old
+ new

@@ -1,8 +1,8 @@ /*! * screenfull -* v2.0.0 - 2014-12-22 +* v3.0.0 - 2016-01-17 * (c) Sindre Sorhus; MIT License */ (function () { 'use strict'; @@ -117,11 +117,11 @@ } Object.defineProperties(screenfull, { isFullscreen: { get: function () { - return !!document[fn.fullscreenElement]; + return Boolean(document[fn.fullscreenElement]); } }, element: { enumerable: true, get: function () { @@ -130,10 +130,10 @@ }, enabled: { enumerable: true, get: function () { // Coerce to boolean in case of old WebKit - return !!document[fn.fullscreenEnabled]; + return Boolean(document[fn.fullscreenEnabled]); } } }); if (isCommonjs) {