1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-27 20:32:21 +00:00

删除错误的“()"

class FooComponent() {} 里的()似乎是错误的,经测试无法运行,故予以删除。
This commit is contained in:
hardfist 2016-03-28 16:51:51 +08:00
parent 8c4187a2f7
commit 9e4665c305

View File

@ -381,7 +381,7 @@ export default function publish(topic, channel) {
```javascript
import publish from "path/to/decorators/publish";
class FooComponent () {
class FooComponent {
@publish("foo.some.message", "component")
someMethod() {
return {