Skip to content

Commit

Permalink
Merge branch 'collectionsOperations' of github.com:kuzzleio/sdk-javas…
Browse files Browse the repository at this point in the history
…cript into collectionsOperations
  • Loading branch information
scottinet committed Nov 19, 2015
2 parents 915d8ce + 11cbcf5 commit 5a5708d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions src/kuzzleDocument.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,15 @@ KuzzleDocument.prototype.refresh = function (options, cb) {
KuzzleDocument.prototype.save = function (options, cb) {
var
data = this.toJSON(),
self = this;
var queryCB = function (error, result) {
self = this,
queryCB;

if (options && cb === undefined && typeof options === 'function') {
cb = options;
options = null;
}

queryCB = function (error, result) {
if (error) {
return cb ? cb(error) : false;
}
Expand Down
4 changes: 2 additions & 2 deletions tests/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

Test are done on examples directories.
You must overrid the current Kuzzle instance for all the examples (http://localhost:7512 is used)
You must override the current Kuzzle instance for all the examples (http://localhost:7512 is used)

You must launch
java -jar selenium-server-standalone-2.46.0.jar


You must launch
mocha test/testWebdriverIO.js
mocha test/testWebdriverIO.js

0 comments on commit 5a5708d

Please sign in to comment.