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

use $.extend

This commit is contained in:
SSantoro
2019-04-18 16:06:07 +02:00
parent df262d40f4
commit ef5fc54946

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($) { (function($) {
var uuidv4 = function() { var uuidv4 = function() {
@@ -16,11 +16,8 @@
}; };
var templateOptions = options || {}; var templateOptions = options || {};
for (var attrname in cacheOptions) {
templateOptions[attrname] = cacheOptions[attrname];
}
return templateOptions; return $.extend(templateOptions, cacheOptions);
}; };
ejs.rr = function(templateUrl, data, options) { ejs.rr = function(templateUrl, data, options) {