mm_tpl 2.2.3 → 2.2.4
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/cache/test.cache.html +1 -0
- package/index.js +2 -2
- package/package.json +1 -1
- package/template/game/bar.html +1 -0
- package/test.js +2 -1
package/cache/test.cache.html
CHANGED
package/index.js
CHANGED
|
@@ -146,10 +146,10 @@ Tpl.prototype.render_before = function(body, model, options) {
|
|
|
146
146
|
Tpl.prototype.loadFunc = function(m) {
|
|
147
147
|
var _this = this;
|
|
148
148
|
m.view = function(file, model, options) {
|
|
149
|
-
return _this.view(file, model, options);
|
|
149
|
+
return _this.view(file, Object.assign({}, m, model), options);
|
|
150
150
|
}
|
|
151
151
|
m.render = function(body, model, options) {
|
|
152
|
-
return _this.render(body, model, options);
|
|
152
|
+
return _this.render(body, Object.assign({}, m, model), options);
|
|
153
153
|
}
|
|
154
154
|
m.hook_action = function(name, ...args) {
|
|
155
155
|
return $.hook.runAction(name, m, ...args);
|
package/package.json
CHANGED
package/template/game/bar.html
CHANGED