Untitled

Pasted by Anonymous on Fri Oct 8 17:17:17 2021 UTC as JavaScript
/////   /www/luci-static/resources/remake/test1.js

'require baseclass';
'require view';
'require poll';
'require fs';

var Junk = baseclass.extend({
	Junk: function(something) {
		return view.extend({
        	render: function() {
        		return E([
        			E('h4', {}, _('Oh boi, javascript is delightful...'))
        		]);
        	},
        	handleSave: null,
        	handleSaveApply: null,
        	handleReset: null
        });
	}
});

return Junk;



////////////////  view file
'use strict';
'require ui';
'require view';
'require remake.test1 as test1';

return view.extend({
	render: function() {
		var m = test1.Junk("blah");   // same, test1.Junk is not a constructor...
		return m.render();
	}
});