Files
test-repo/tests/method-chain/computed-merge.js
T
Christopher Chedeau 777090ca99 Make the factory detection handle multiple elements (#3112)
This was only accounting for a single element in the first group. Now it handles arbitrary elements. Only the last element being capitalized matters.

This fixes one issue in #3107
2017-10-27 09:05:40 -07:00

17 lines
308 B
JavaScript

[].forEach(key => {
data[key]('foo')
.then(() => console.log('bar'))
.catch(() => console.log('baz'));
});
[].forEach(key => {
data('foo')
[key]('bar')
.then(() => console.log('bar'))
.catch(() => console.log('baz'));
});
window.Data[key]("foo")
.then(() => a)
.catch(() => b);