We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd1ba04 commit 211372cCopy full SHA for 211372c
src/counters/counter.js
@@ -13,7 +13,6 @@ import {
13
reset
14
} from './methods'
15
16
-
17
export default class Counter {
18
constructor(name) {
19
if (!name || !Utils.isString(name)) {
@@ -24,12 +23,13 @@ export default class Counter {
24
23
}
25
26
27
-const withCounterName = method => (...args) => method(this.name, ...args)
+const withCounterName = method => function(...args) {
+ return method(this.name, ...args)
28
+}
29
30
//TODO: will be removed when remove sync methods
31
const namespaceLabel = 'Backendless.Counter.of(<CounterName>)'
32
33
Object.setPrototypeOf(Counter.prototype, {
34
35
@deprecated(namespaceLabel, `${namespaceLabel}.incrementAndGet`)
0 commit comments