web-apps/vendor/requirejs/tests/nestedRequire/a.js

14 lines
322 B
JavaScript
Raw Normal View History

2016-03-11 00:48:53 +00:00
define(['base'], function (base) {
return {
name: 'a',
counter: 0,
doSomething: function () {
this.counter += 1;
this.base = base;
//This should not cause double notifications.
require(['base'], function () {
});
}
};
});