diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/html.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/util/html.js b/src/util/html.js index 9221256d..b5f6e70f 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -1228,11 +1228,12 @@ export class Template { return blankAttributes(); } - if ( - providedValue instanceof Attributes && - description.mutable - ) { - return providedValue.clone(); + if (providedValue instanceof Attributes) { + if (description.mutable) { + return providedValue.clone(); + } else { + return providedValue; + } } return new Attributes(providedValue); |