Commit ae388238 authored by rockyl's avatar rockyl

修改了好多东西啊

parent 2069d4bb
(function(){
var exports = {};
var module;
/*=====START test1 START=====*/
module = {
exports: {}
};
(function(module){
'use strict';
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
function __extends(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
var Test1 = (function (_super) {
__extends(Test1, _super);
function Test1() {
var _this = _super.call(this) || this;
var rect = new engine.Rect();
rect.width = 100;
rect.height = 100;
_this.addChild(rect);
return _this;
}
return Test1;
}(engine.Container));
function index (options) {
var instance = new Test1();
return instance;
}
module.exports = index;
})(module);
exports['test1'] = module.exports;
/*=====END test1 END=====*/
for(var key in exports){
engine.registerCustomModule(key, exports[key]);
}
})();
(function(){
const processScripts = {};
(function(exports){
exports['be0d860d76d690e6a4ffb210f9b0ed0a'] = function(args, props, target, global, vm){
return new Promise(function(resolve, reject){
let text = '';
for(var i = 0;i < Math.random()*10 + 2;i++){
text += 'a';
}
//target.text = text;
next('success');
function next(type, payload){resolve({type: type, payload: payload})}
});
};
exports['d2f54d3ba1ab5766a3a64aab5a9bce50'] = function(args, props, target, global, vm){
return new Promise(function(resolve, reject){
console.log('hello');
next('success');
function next(type, payload){resolve({type: type, payload: payload})}
});
};
exports['5e64ba15f52ca14d2f8545a2d8651901'] = function(args, props, target, global, vm){
return new Promise(function(resolve, reject){
next('success', args);
function next(type, payload){resolve({type: type, payload: payload})}
});
};
})(processScripts);
engine.setScriptMap(processScripts);
})();
\ No newline at end of file
(function(){
const scripts = {};
/*=====START test START=====*/
(function(exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Test = (function (_super) {
__extends(Test, _super);
function Test() {
return _super !== null && _super.apply(this, arguments) || this;
}
Test.prototype.mounted = function () {
console.log('test mounted');
};
Test.id = 'test';
return Test;
}(engine.ScriptBase));
exports.Test = Test;
})(scripts);
/*=====END test END=====*/
for(let key in scripts){
const script = scripts[key];
engine.registerScriptDef(script.id, script);
}
})();
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment