1
0
mirror of https://github.com/S2-/ejs-render-remote synced 2025-08-03 05:00:03 +02:00

s/then/done/

This commit is contained in:
s2
2020-02-08 22:37:54 +01:00
parent d53c239f90
commit 371d16bc2e

View File

@@ -41,7 +41,7 @@
} }
var r = uuidv4(); var r = uuidv4();
getTemplateFn.then(function(template) { getTemplateFn.done(function(template) {
var templateOptions = overwriteWithCacheOptions(options, templateUrl); var templateOptions = overwriteWithCacheOptions(options, templateUrl);
try { try {
@@ -72,7 +72,7 @@
d.resolve(templateUrl); d.resolve(templateUrl);
} else { } else {
$.get(templateUrl) $.get(templateUrl)
.then(function(template) { .done(function(template) {
try { try {
var templateOptions = overwriteWithCacheOptions(options, templateUrl); var templateOptions = overwriteWithCacheOptions(options, templateUrl);
var templateFn = ejs.compile(template, templateOptions); var templateFn = ejs.compile(template, templateOptions);