web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
430 B

  1. "use strict";
  2. var nextTick = require("next-tick");
  3. module.exports = function (t, a, d) {
  4. var wasInvoked = false, args = [{}, {}], context = {};
  5. var target = t.call(function () {
  6. a(this, context);
  7. a.deep(arguments, args);
  8. wasInvoked = true;
  9. });
  10. nextTick(function () {
  11. a(wasInvoked, false);
  12. target.apply(context, args);
  13. a(wasInvoked, false);
  14. nextTick(function () {
  15. a(wasInvoked, true);
  16. d();
  17. });
  18. });
  19. };