Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5d194ed

Browse files
committed
FIX build warning
1 parent22944a3 commit5d194ed

File tree

6 files changed

+23
-13
lines changed

6 files changed

+23
-13
lines changed

‎dist/mikado.debug.js‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**!
2-
* Mikado.js v0.6.5
2+
* Mikado.js v0.6.53
33
* Copyright 2019 Nextapps GmbH
44
* Author: Thomas Wilkerling
55
* Licence: Apache-2.0
@@ -835,7 +835,7 @@ Mikado$$module$tmp$mikado.prototype.init = function(template, options) {
835835
}
836836
returnthis;
837837
};
838-
Mikado$$module$tmp$mikado.once=function(root,template,data,view,callback){
838+
Mikado$$module$tmp$mikado.once=Mikado$$module$tmp$mikado.once=function(root,template,data,view,callback){
839839
vartmp=Mikado$$module$tmp$mikado.new(root,template);
840840
if(typeofview==="function"){
841841
callback=view;
@@ -1025,6 +1025,10 @@ Mikado$$module$tmp$mikado.prototype.render = function(data, view, callback, skip
10251025
}
10261026
}
10271027
if(SUPPORT_STORAGE&&!data){
1028+
if(this.static){
1029+
this.dom[0]||this.add();
1030+
returnthis;
1031+
}
10281032
returnthis.refresh();
10291033
}
10301034
varlength=this.length;

‎dist/mikado.es5.js‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎dist/mikado.light.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎dist/mikado.min.js‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"homepage":"https://github.com/nextapps-de/mikado/",
66
"author":"Thomas Wilkerling",
77
"copyright":"Nextapps GmbH",
8-
"version":"0.6.5",
8+
"version":"0.6.53",
99
"license":"Apache-2.0",
1010
"keywords": [
1111
"Templating",

‎src/mikado.js‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,14 +481,14 @@ Mikado.prototype.init = function(template, options){
481481
};
482482

483483
/**
484-
*@param {!Element} root
485-
*@param {!Template|Object} template
484+
*@param {Element} root
485+
*@param {Template|Object} template
486486
*@param {Array<Object>|Object=} data
487487
*@param {Object|Function=} view
488488
*@param {Function=} callback
489489
*/
490490

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

493493
consttmp=Mikado.new(root,template);
494494

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

839839
if(SUPPORT_STORAGE&&!data){
840840

841+
if(this.static){
842+
843+
this.dom[0]||this.add();
844+
returnthis;
845+
}
846+
841847
returnthis.refresh();
842848
}
843849

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp