Skip to content

Commit ab6d4cf

Browse files
committed
Build dist
1 parent b5197c0 commit ab6d4cf

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

dist/mobilerider-client.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,11 +1697,17 @@ var Query = (function () {
16971697
return true;
16981698
};
16991699

1700-
Resource.prototype.get = function (id) {
1700+
Resource.prototype.get = function (id, data) {
17011701
// Returns a promise that when resolved it contains a Javascript object representing the object returned by the API
1702-
var self = this;
1702+
var self = this, args;
17031703
id = self.validateId(id);
1704-
return self.client.request({ url: self.getUrl(id), method: 'GET' });
1704+
args = { url: self.getUrl(id), method: 'GET' };
1705+
1706+
if (data && Object.getOwnPropertyNames(data).length) {
1707+
args.data = data;
1708+
}
1709+
1710+
return self.client.request(args);
17051711
};
17061712

17071713
Resource.prototype.create = function (attributes) {

0 commit comments

Comments
 (0)