File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 11031103 throw new Error ( 'Invalid value for the "value" argument. The argument must contain only string or object values' ) ;
11041104 }
11051105
1106- var responder = Utils . extractResponder ( arguments ) , isAsync = false ;
1107-
1108- if ( responder != null ) {
1109- isAsync = true ;
1110- responder = Utils . wrapAsync ( responder , this . _parseResponse , this ) ;
1111- }
1106+ var responder = Utils . extractResponder ( arguments ) ;
1107+ var isAsync = responder != null ;
11121108
11131109 var result ;
11141110
11991195 options && query . push ( options ) ;
12001196 whereClause && query . push ( whereClause ) ;
12011197 props && query . push ( props ) ;
1202- query = query . join ( '&' ) ;
12031198
12041199 if ( dataQuery . url ) {
12051200 url += '/' + dataQuery . url ;
12061201 }
12071202
1208- if ( query ) {
1209- url += '?' + query ;
1203+ if ( query . length ) {
1204+ url += '?' + query . join ( '&' ) ;
12101205 }
12111206
12121207 result = Backendless . _ajax ( {
13121307
13131308 options && query . push ( options ) ;
13141309 whereClause && query . push ( whereClause ) ;
1315- query = query . join ( '&' ) ;
13161310
13171311 var relationModel = dataQuery . relationModel || null ;
13181312 var responder = Utils . extractResponder ( arguments ) ;
13231317 return this . _parseFindResponse ( response , relationModel ) ;
13241318 } , this ) ;
13251319
1326- if ( query ) {
1327- url += '?' + query ;
1320+ if ( query . length ) {
1321+ url += '?' + query . join ( '&' ) ;
13281322 }
13291323
13301324 var result = Backendless . _ajax ( {
You can’t perform that action at this time.
0 commit comments