mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-12 12:10:44 +08:00
Update polymer.d.ts: fix es6 class syntax
This commit is contained in:
@@ -63,7 +63,7 @@ var el2 = document.createElement('my-element');
|
||||
class MyElement2 {
|
||||
is: string;
|
||||
|
||||
registered() {
|
||||
beforeRegister() {
|
||||
this.is = "my-element2";
|
||||
}
|
||||
}
|
||||
@@ -74,7 +74,7 @@ Polymer(MyElement2);
|
||||
class MyElement3 implements polymer.Base {
|
||||
is: string;
|
||||
|
||||
registered() {
|
||||
beforeRegister() {
|
||||
this.is = "my-element3";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user