UNPKG

dojo-util

Version:

Dojo utilities including build system for optimizing JavaScript application performance, and DOH testing tool

16 lines (14 loc) 418 B
define(["doh/runner"], function(doh) { // summary: // A sample DOH plugin showing wrapping/augmentation of DOH // We extend the 'run' method to inject a 'hello world' kind of statement into the output var origRun = doh.run, registered = false; doh.run = function() { if(!registered) { doh.debug("doh.plugins.hello plugin says Hello!"); registered = true; } origRun.apply(doh, arguments); } });