Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Toolkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Web Component Framework
Toolkit
Commits
b1da4cbc
Commit
b1da4cbc
authored
4 years ago
by
Tögl, Christina
Browse files
Options
Downloads
Patches
Plain Diff
Undo fix
parent
5e188533
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/provider/src/adapter-lit-element.js
+3
-3
3 additions, 3 deletions
packages/provider/src/adapter-lit-element.js
with
3 additions
and
3 deletions
packages/provider/src/adapter-lit-element.js
+
3
−
3
View file @
b1da4cbc
...
@@ -286,11 +286,11 @@ export class AdapterLitElement extends LitElement {
...
@@ -286,11 +286,11 @@ export class AdapterLitElement extends LitElement {
}
}
break
;
break
;
default
:
default
:
// The function should not be called if newValue is empty but name
is
set
// The function should not be called if newValue is empty but name
and oldValue are
set
// This should prevent 'Uncaught SyntaxError: JSON.parse unexpected end of data at line 1 column 1 of the JSON data'
// This should prevent 'Uncaught SyntaxError: JSON.parse unexpected end of data at line 1 column 1 of the JSON data'
if
(
newValue
||
!
name
)
{
if
(
newValue
||
!
oldValue
||
!
name
)
{
super
.
attributeChangedCallback
(
name
,
oldValue
,
newValue
);
super
.
attributeChangedCallback
(
name
,
oldValue
,
newValue
);
// } else {
//!newValue && name
// } else {
// console.log("attributeChangedCallback ignored", name, oldValue, newValue);
// console.log("attributeChangedCallback ignored", name, oldValue, newValue);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment