internet explorer - Javascript: Inconsistency when assigning a named function to a variable (named function expression) -
internet explorer - Javascript: Inconsistency when assigning a named function to a variable (named function expression) - can explain difference in behaviour between net explorer , firefox in regards below: var mynamespace = (function () { var exposed = {}; exposed.myfunction = function myfunction () { homecoming "works!"; } console.log(myfunction()); // ie: "works!" // firefox: referenceerror: myfunction not defined console.log(exposed.myfunction()); // ie: "works!" // ff: "works!" homecoming exposed; })(); console.log(mynamespace.myfunction()); // ie: "works!" // ff: "works!" in net explorer method allows me phone call function within namespace function using either myfunction() or exposed.myfunction() . outside namepsace function can utilize mynamespace.myfunction() in firefox, results same exception of bare named function phone call not work. should work? if shouldn...