Advertisement
Guest User

Untitled

a guest
Nov 9th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. return view.extend({
  2.   load: function() {
  3.     return new Promise(function(resolveFn, rejectFn) {
  4.       document.querySelector('head').appendChild(E('script', {
  5.         src: 'blah.js',
  6.         load: resolveFn,
  7.         error: rejectFn
  8.       }));
  9.     });
  10.   },
  11.   render: function() {
  12.     ...
  13.   }
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement