UNPKG

dojo

Version:

Dojo core is a powerful, lightweight library that makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.

19 lines (18 loc) 408 B
define([ "require", "dojo/_base/declare", "dojo/dom-construct", "dojo/parser", "./AMDWidget2" ], function(require, declare, domConstruct, parser) { return declare(null, { constructor : function() { var node = domConstruct.create("div", { innerHTML : '<div data-testing-type="./AMDWidget2"></div>' }); this.child = parser.parse(node, { contextRequire : require })[0]; } }); });