Skip to content

Commit

Permalink
FIX build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ts-thomas committed Oct 17, 2019
1 parent 22944a3 commit 5d194ed
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 13 deletions.
8 changes: 6 additions & 2 deletions dist/mikado.debug.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**!
* Mikado.js v0.6.5
* Mikado.js v0.6.53
* Copyright 2019 Nextapps GmbH
* Author: Thomas Wilkerling
* Licence: Apache-2.0
Expand Down Expand Up @@ -835,7 +835,7 @@ Mikado$$module$tmp$mikado.prototype.init = function(template, options) {
}
return this;
};
Mikado$$module$tmp$mikado.once = function(root, template, data, view, callback) {
Mikado$$module$tmp$mikado.once = Mikado$$module$tmp$mikado.once = function(root, template, data, view, callback) {
var tmp = Mikado$$module$tmp$mikado.new(root, template);
if (typeof view === "function") {
callback = view;
Expand Down Expand Up @@ -1025,6 +1025,10 @@ Mikado$$module$tmp$mikado.prototype.render = function(data, view, callback, skip
}
}
if (SUPPORT_STORAGE && !data) {
if (this.static) {
this.dom[0] || this.add();
return this;
}
return this.refresh();
}
var length = this.length;
Expand Down
6 changes: 3 additions & 3 deletions dist/mikado.es5.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/mikado.light.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/mikado.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"homepage": "https://github.com/nextapps-de/mikado/",
"author": "Thomas Wilkerling",
"copyright": "Nextapps GmbH",
"version": "0.6.5",
"version": "0.6.53",
"license": "Apache-2.0",
"keywords": [
"Templating",
Expand Down
12 changes: 9 additions & 3 deletions src/mikado.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,14 +481,14 @@ Mikado.prototype.init = function(template, options){
};

/**
* @param {!Element} root
* @param {!Template|Object} template
* @param {Element} root
* @param {Template|Object} template
* @param {Array<Object>|Object=} data
* @param {Object|Function=} view
* @param {Function=} callback
*/

Mikado["once"] = function(root, template, data, view, callback){
Mikado.once = Mikado["once"] = function(root, template, data, view, callback){

const tmp = Mikado.new(root, template);

Expand Down Expand Up @@ -838,6 +838,12 @@ Mikado.prototype.render = (function(data, view, callback, skip_async){

if(SUPPORT_STORAGE && !data){

if(this.static){

this.dom[0] || this.add();
return this;
}

return this.refresh();
}

Expand Down

0 comments on commit 5d194ed

Please sign in to comment.