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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user