Files
piratepoet/patches/backbone.supermodel@1.2.0.patch
Jan Jakes 7dfb55e103 Use pnpm patch for backbone.supermodel strict mode fixes
This patch fixes strict mode issues in backbone.supermodel build.

[MAILPOET-4485]
2022-07-26 15:45:54 +02:00

16 lines
652 B
Diff

diff --git a/build/backbone.supermodel.js b/build/backbone.supermodel.js
index f33f8e5f959b25a344ec4c3b2d301d9cfb7d9838..6ef9df05cde4905cb17b66a842213a53d51f1550 100644
--- a/build/backbone.supermodel.js
+++ b/build/backbone.supermodel.js
@@ -66,9 +66,9 @@ Backbone.SuperModel = (function(_, Backbone){
var walkObject = function(obj, keyPath, doThing) {
keyPath = processKeyPath(keyPath);
- lastKeyIndex = keyPath.length-1;
+ var lastKeyIndex = keyPath.length-1;
for (var i = 0; i < lastKeyIndex; ++ i) {
- key = keyPath[i];
+ var key = keyPath[i];
if (!(key in obj))
obj[key] = {};
obj = obj[key];