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

use $.extend

This commit is contained in:
s2
2019-04-18 16:06:07 +02:00
parent 9e36c0e82b
commit 06b2289724

View File

@@ -1,4 +1,4 @@
//this uses jQuery for now because ie11 support is needed (promises and fetch)
//this uses jQuery for now because ie11 support is needed (promises, fetch, Object.assign)
(function($) {
var uuidv4 = function() {
@@ -16,11 +16,8 @@
};
var templateOptions = options || {};
for (var attrname in cacheOptions) {
templateOptions[attrname] = cacheOptions[attrname];
}
return templateOptions;
return $.extend(templateOptions, cacheOptions);
};
ejs.rr = function(templateUrl, data, options) {