Line | |
---|
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
---|
2 | "http://www.w3.org/TR/html4/strict.dtd"> |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <title>Testing dojo.addOnLoad(), dojo.addOnUnload() and dojo.addOnWindowUnload()</title> |
---|
6 | <script type="text/javascript" |
---|
7 | src="../../../dojo.js" djConfig="stripStrict: true"></script> |
---|
8 | <script type="text/javascript"> |
---|
9 | require(["dojo/aspect"], function(aspect){ |
---|
10 | var obj = { |
---|
11 | }; |
---|
12 | aspect.after(obj, "foo", function(){ |
---|
13 | // this will throw an error if strict mode isn't stripped properly |
---|
14 | var caller = arguments.callee.caller; |
---|
15 | console.log("successful"); |
---|
16 | }); |
---|
17 | obj.foo(); |
---|
18 | }); </script> |
---|
19 | </head> |
---|
20 | <body> |
---|
21 | </body> |
---|
22 | </html> |
---|
23 | |
---|
Note: See
TracBrowser
for help on using the repository browser.