stripStrict.html 664 Bytes
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
	"http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>Testing dojo.addOnLoad(), dojo.addOnUnload() and dojo.addOnWindowUnload()</title>
		<script type="text/javascript" 
			src="../../../dojo.js" djConfig="stripStrict: true"></script>
		<script type="text/javascript">
			require(["dojo/aspect"], function(aspect){
				var obj = {
				};
				aspect.after(obj, "foo", function(){
					// this will throw an error if strict mode isn't stripped properly
					var caller = arguments.callee.caller;
					console.log("successful");
				});
				obj.foo();
			});		</script>
	</head>
	<body>
	</body>
</html>