@kohanajs/mixin-orm
Advanced tools
Comparing version 1.0.20 to 1.0.21
@@ -10,4 +10,4 @@ const {View, ControllerMixin} = require('kohanajs'); | ||
this.exports = { | ||
getView : (file, data, viewClass=null) => this.getView(file, data, viewClass), | ||
setTemplate: (file, data={}, viewClass={}) => { | ||
getView : (file, data=null, viewClass=null) => this.getView(file, data, viewClass), | ||
setTemplate: (file, data=null, viewClass=null) => { | ||
this.template = this.getView(file, data, viewClass); | ||
@@ -35,3 +35,3 @@ }, | ||
getView(path, data, viewClass = null){ | ||
getView(path, data=null, viewClass = null){ | ||
if(viewClass)return new viewClass(path, data); | ||
@@ -38,0 +38,0 @@ return new View.defaultViewClass(path, data); |
{ | ||
"name": "@kohanajs/mixin-orm", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11949