File tree Expand file tree Collapse file tree 7 files changed +8
-7
lines changed
Expand file tree Collapse file tree 7 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 55 ],
66 "plugins" : [
77 " transform-object-assign" ,
8- " transform-decorators-legacy" ,
9- " transform-object-set-prototype-of-to-assign"
8+ " transform-decorators-legacy"
109 ]
1110}
Original file line number Diff line number Diff line change 5757 "babel-loader" : " ^7.1.2" ,
5858 "babel-plugin-transform-decorators-legacy" : " ^1.3.4" ,
5959 "babel-plugin-transform-object-assign" : " ^6.22.0" ,
60- "babel-plugin-transform-object-set-prototype-of-to-assign" : " ^6.22.0" ,
6160 "babel-polyfill" : " ^6.20.0" ,
6261 "babel-preset-es2015" : " ^6.18.0" ,
6362 "babel-preset-stage-1" : " ^6.24.1" ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const withCounterName = method => function(...args) {
3030//TODO: will be removed when remove sync methods
3131const namespaceLabel = 'Backendless.Counter.of(<CounterName>)'
3232
33- Object . setPrototypeOf ( Counter . prototype , {
33+ Object . assign ( Counter . prototype , {
3434
3535 @deprecated ( namespaceLabel , `${ namespaceLabel } .incrementAndGet` )
3636 incrementAndGetSync : Utils . synchronized ( withCounterName ( incrementAndGet ) ) ,
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class DataPermission {
4343//TODO: will be removed when remove sync methods
4444const namespaceLabel = 'Backendless.Data.Permissions.{FIND|REMOVE|UPDATE}'
4545
46- Object . setPrototypeOf ( DataPermission . prototype , {
46+ Object . assign ( DataPermission . prototype , {
4747
4848 @deprecated ( namespaceLabel , `${ namespaceLabel } .grantUser` )
4949 grantUserSync : Utils . synchronized ( grantUser ) ,
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class DataStore {
3131
3232}
3333
34- Object . setPrototypeOf ( DataStore . prototype , {
34+ Object . assign ( DataStore . prototype , {
3535
3636 @deprecated ( namespaceLabel , `${ namespaceLabel } .save` )
3737 saveSync : Utils . synchronized ( save ) ,
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ export default class PollingProxy extends Proxy {
77 constructor ( url ) {
88 super ( )
99
10- this . eventHandlers = { }
1110 this . restUrl = url
1211 this . timer = 0
1312 this . timeout = 0
Original file line number Diff line number Diff line change 11export default class Proxy {
22
3+ constructor ( ) {
4+ this . eventHandlers = { }
5+ }
6+
37 on ( eventName , handler ) {
48 if ( ! eventName ) {
59 throw new Error ( 'Event name not specified' )
You can’t perform that action at this time.
0 commit comments