UNPKG

dojo

Version:

Dojo core is a powerful, lightweight library that makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.

24 lines (22 loc) 664 B
<!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>