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
/** | |
* Debounce a function firing | |
* @param {function} func The function to potentially fire | |
* @param {number} wait Debounced wait duration (millisecs) | |
* @param {boolean} immediate Should leading occurrence exec fn immediately | |
* @return {void} | |
*/ | |
debounce = function(func, wait, immediate) { | |
var timeout; | |
return function() { |
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
openInNewTab = function(url) { | |
var popupBlockerChecker = { | |
check: function(popup_window){ | |
var _scope = this; | |
if (popup_window) { | |
if(/chrome/.test(navigator.userAgent.toLowerCase())){ | |
setTimeout(function () { | |
_scope._is_popup_blocked(_scope, popup_window); | |
},200); | |
}else{ |
NewerOlder