source: Dev/branches/rest-dojo-ui/client/util/doh/plugins/hello.js @ 257

Last change on this file since 257 was 256, checked in by hendrikvanantwerpen, 13 years ago

Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).

File size: 421 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.