You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Checking exports !== undefined can give false positives #238
A publishing tool that dynamically creates IDs based on the value of that heading, id="exports"
A browser takes this heading and creates a global variable, window.exports returns the HTML element
The line typeof exports !== 'undefined' ? exports : Hogan now returns an HTML element and Hogan doesn't start properly
varHogan={};(function(Hogan){// The value of Hogan at this point is the HTML element// <h2 id="exports">Exports</h2>})(typeofexports!=='undefined' ? exports : Hogan);
Activity
fofr commentedon May 25, 2016
More details in this blog post:
http://paulrhayes.com/2015-12/a-problem-with-exports/