Comparing version 0.6.0 to 0.6.1
## [Unreleased] | ||
## [0.6.1] - 2016-01-06 | ||
### Changed | ||
- `getActiveElement`: no longer throws in non-browser environment (again) | ||
## [0.6.0] - 2015-12-29 | ||
@@ -4,0 +9,0 @@ |
@@ -13,2 +13,4 @@ /** | ||
/* eslint-disable fb-www/typeof-undefined */ | ||
/** | ||
@@ -18,7 +20,11 @@ * Same as document.activeElement but wraps in a try-catch block. In IE it is | ||
* | ||
* The activeElement will be null only if the document body is not yet defined. | ||
* The activeElement will be null only if the document or document body is not | ||
* yet defined. | ||
*/ | ||
"use strict"; | ||
'use strict'; | ||
function getActiveElement() /*?DOMElement*/{ | ||
if (typeof document === 'undefined') { | ||
return null; | ||
} | ||
try { | ||
@@ -25,0 +31,0 @@ return document.activeElement || document.body; |
{ | ||
"name": "fbjs", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "A collection of utility libraries used by other Facebook JS projects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
197005
2835