File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 11- Add cloak
2+ - Add 'connected' & 'rendered' properties
3+ - Add 'once' listener
Original file line number Diff line number Diff line change 11{
22 "name" : " @author.io/element-base" ,
3- "version" : " 1.1.3 " ,
3+ "version" : " 1.1.4 " ,
44 "description" : " Base class for all author-* custom elements (web components)." ,
55 "main" : " dist/author-base.min.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -979,6 +979,10 @@ const AuthorBaseElement = superClass => class extends superClass {
979979 * Fires after change has been applied to matching properties.
980980 */
981981 attributeChangedCallback ( attribute , oldValue , newValue ) {
982+ if ( newValue === oldValue ) {
983+ return
984+ }
985+
982986 this . emit ( 'attribute.change' , {
983987 attribute,
984988 oldValue,
@@ -1046,6 +1050,7 @@ const AuthorBaseElement = superClass => class extends superClass {
10461050 }
10471051
10481052 this . dispatchEvent ( event )
1053+ return event
10491054 }
10501055
10511056 /**
You can’t perform that action at this time.
0 commit comments