Skip to content

Commit e4d22fd

Browse files
author
fmdm
committed
identation correction
1 parent 73f4e4c commit e4d22fd

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,17 @@ export function componentFactory (
5757
const decorators = (Component as DecoratedClass).__decorators__
5858
if (decorators) {
5959
decorators.forEach(fn => fn(options))
60-
}
60+
}
6161

6262
// find super
6363
const superProto = Object.getPrototypeOf(Component.prototype)
6464
const Super = superProto instanceof Vue
6565
? superProto.constructor as VueClass
6666
: Vue
6767
const rv = Super.extend(options);
68-
69-
for(let sttc in Component)
70-
if(!(sttc in function() {}) && Component.hasOwnProperty(sttc))
71-
rv[sttc] = Component[sttc];
72-
return rv;
68+
69+
for(let sttc in Component)
70+
if(!(sttc in function() {}) && Component.hasOwnProperty(sttc))
71+
rv[sttc] = Component[sttc];
72+
return rv;
7373
}

test/test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,13 @@ describe('vue-class-component', () => {
257257
expect(child.value).to.equal('child')
258258
})
259259

260-
it('forwardStatics', function () {
261-
debugger;
262-
@Component
263-
class MyComp extends Vue {
264-
static myValue = 52
265-
}
266-
267-
expect(MyComp.myValue).to.equal(52);
268-
})
260+
it('forwardStatics', function () {
261+
debugger;
262+
@Component
263+
class MyComp extends Vue {
264+
static myValue = 52
265+
}
266+
267+
expect(MyComp.myValue).to.equal(52);
268+
})
269269
})

0 commit comments

Comments
 (0)