source: Dev/trunk/src/client/util/doh/plugins/hello.js @ 529

Last change on this file since 529 was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 418 bytes
Line 
1define(["doh/runner"], function(doh) {
2        // summary:
3        //              A sample DOH plugin showing wrapping/augmentation of DOH
4        //              We extend the 'run' method      to inject a 'hello world' kind of statement into the output
5        var origRun = doh.run,
6                registered = false;
7
8        doh.run = function() {
9                if(!registered) {
10                        doh.debug("doh.plugins.hello plugin says Hello!");
11                        registered = true;
12                }
13                origRun.apply(doh, arguments);
14        }
15});
Note: See TracBrowser for help on using the repository browser.