mirror of
https://github.com/donl/meteor-ionic.git
synced 2026-05-26 22:06:41 -06:00
close modal by templateName
This commit is contained in:
parent
58f99804f6
commit
e853bfdf20
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ IonModal = {
|
|||
this.templateClosed = templateName;
|
||||
Meteor.setTimeout(function () {
|
||||
|
||||
var templateName = this.templateClosed || this.views[this.views.length-1];
|
||||
var templateName = this.templateClosed || this.views.slice(-1)[0];
|
||||
delete this.templateClosed;
|
||||
|
||||
var view = (this.view[templateName] || []).slice(-1)[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue