This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getScrollbarWidth() { | |
if(width !== undefined) { | |
return width; | |
} | |
var outer = document.createElement("div"); | |
outer.style.visibility = "hidden"; | |
outer.style.width = "100px"; | |
outer.style.msOverflowStyle = "scrollbar"; // needed for WinJS apps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var handlers = {}; | |
document.addEventListener('click', onDocumentClick); | |
function onDocumentClick(evt) { | |
var rid = (evt.target.dataset && evt.target.dataset.reactid) || ''; | |
Object.keys(handlers).forEach(function(key) { | |
var hnd = handlers[key]; | |
if(rid.indexOf(key) !== 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var handlers = {}; | |
document.addEventListener('click', onDocumentClick); | |
function onDocumentClick(evt) { | |
var rid = (evt.target.dataset && evt.target.dataset.reactid) || ''; | |
Object.keys(handlers).forEach(function(key) { | |
var hnd = handlers[key]; | |
if(rid.indexOf(key) !== 0) { | |
hnd.comp[hnd.handler](evt); |
NewerOlder