render-core 1.2.8 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/inject/inject.js
CHANGED
|
@@ -30,7 +30,7 @@ export function injectRefs(controller) {
|
|
|
30
30
|
export function injectMethod(controller, proto) {
|
|
31
31
|
var methods = Object.getOwnPropertyNames(proto.getMethods());
|
|
32
32
|
methods.forEach(function (value) {
|
|
33
|
-
if (value.match(/^raw_[a-zA-Z0-9_]*/)
|
|
33
|
+
if (value.match(/^raw_[a-zA-Z0-9_]*/) !== null) {
|
|
34
34
|
Reflect.set(controller.raw_data, value, proto.getMethods()[value].bind(controller.raw_data));
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
@@ -23,6 +23,7 @@ export function controllerCycleTypeTwo(controller, proto, child, link, tagTempla
|
|
|
23
23
|
function cycleBridge(controller, proto, child, link, tagTemplate) {
|
|
24
24
|
//保持控制器模板对象
|
|
25
25
|
controller.proto = proto;
|
|
26
|
+
controller.mode = proto.getMode();
|
|
26
27
|
//向raw_data中注入元数据
|
|
27
28
|
inject(controller, tagTemplate);
|
|
28
29
|
//数据渲染代理对象
|