Debian Codegraph @

util/doh/plugins/hello.js

raw symbols SCIP
1 define(["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 });