sergey-t
8/21/2015 - 5:47 PM

#check-if-function-exists-before-calling


// no error checking
(yourFunctionName || Function)();

// debugging, maybe on Firefox
(yourFunctionName || console.error)();

// debugging on Chrome
(yourFunctionName || function(){ console.error(arguments) })();