PDA

View Full Version : ReferenceError: Can't find variable: AN



shinriyo
24 Jan 2012, 4:38 AM
Safari said the bug by debugger

ReferenceError: Can't find variable: AN



if (typeof(AN) === undefined) {
AN = {};
}

arnebech
24 Jan 2012, 7:33 AM
Looks like you're missing the quotes around undefined.


if (typeof(AN) === "undefined") {
AN = {};
}