Skip to content

Commit

Permalink
Version 0.2.1: Add a count parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tkw1536 committed Sep 8, 2015
1 parent fc49a52 commit a59f38f
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 17 deletions.
11 changes: 9 additions & 2 deletions dist/openjub.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/openjub.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/JUB.Client.html
Original file line number Diff line number Diff line change
Expand Up @@ -2492,7 +2492,7 @@ <h4 class="name" id="status">


<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a> on Tue Sep 08 2015 17:50:55 GMT+0200 (CEST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a> on Tue Sep 08 2015 17:56:58 GMT+0200 (CEST)
</footer>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/JUB.html
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ <h3 class="subsection-title">Namespaces</h3>


<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a> on Tue Sep 08 2015 17:50:55 GMT+0200 (CEST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a> on Tue Sep 08 2015 17:56:58 GMT+0200 (CEST)
</footer>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/JUB.requests.html
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ <h4 class="name" id="~callback">


<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a> on Tue Sep 08 2015 17:50:55 GMT+0200 (CEST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a> on Tue Sep 08 2015 17:56:58 GMT+0200 (CEST)
</footer>
</div>
</div>
Expand Down
10 changes: 5 additions & 5 deletions docs/JUB.result.html
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ <h4 class="name" id="hasNext">


<div class="tag-source">
result.js, line 89
result.js, line 96
</div>

</div>
Expand Down Expand Up @@ -497,7 +497,7 @@ <h4 class="name" id="hasNext">


<div class="tag-source">
result.js, line 61
result.js, line 68
</div>

</div>
Expand Down Expand Up @@ -573,7 +573,7 @@ <h4 class="name" id="next">


<div class="tag-source">
result.js, line 43
result.js, line 50
</div>

</div>
Expand Down Expand Up @@ -696,7 +696,7 @@ <h4 class="name" id="prev">


<div class="tag-source">
result.js, line 71
result.js, line 78
</div>

</div>
Expand Down Expand Up @@ -825,7 +825,7 @@ <h4 class="name" id="prev">


<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a> on Tue Sep 08 2015 17:50:55 GMT+0200 (CEST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a> on Tue Sep 08 2015 17:56:58 GMT+0200 (CEST)
</footer>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/JUB.utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ <h4 class="name" id=".setImmediate">


<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a> on Tue Sep 08 2015 17:50:55 GMT+0200 (CEST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a> on Tue Sep 08 2015 17:56:58 GMT+0200 (CEST)
</footer>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ <h2>Folder structure</h2><ul>


<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a> on Tue Sep 08 2015 17:50:55 GMT+0200 (CEST)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.2</a> on Tue Sep 08 2015 17:56:58 GMT+0200 (CEST)
</footer>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h1>OpenJUB SDK DEMO</h1>

<!-- Load libraries -->
<script src="dist/openjub.js"></script>
<script src='http://lorenzoongithub.github.io/completely/complete.ly.1.0.1.min.js'></script>
<script src='https://lorenzoongithub.github.io/completely/complete.ly.1.0.1.min.js'></script>

<script>
var client = new JUB.Client();
Expand Down Expand Up @@ -60,7 +60,7 @@ <h1>OpenJUB SDK DEMO</h1>
auto.startFrom = completion.startIndex;

auto.repaint();
doSearch(text);
doSearch(text);
};

client.ready(function(){
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "openjub-js-sdk",
"filename": "openjub",
"version": "0.2.0",
"version": "0.2.1",
"description": "A front-end JavaScript implementation of the OpenJUB API",
"main": "dist/openjub.min.js",
"scripts": {
Expand Down
9 changes: 8 additions & 1 deletion src/result.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ JUB.result = module.exports = function result(data, query, client){
* @property JUB.result#data
*/
this.data = data.data;

/**
* The number of results the search received altogether.
* @type {number}
* @property JUB.result#count
*/
this.count = data.count;
}

/**
Expand Down Expand Up @@ -66,7 +73,7 @@ var next = JUB.result.prototype.next = function next(callback){
*/
var hasNext = JUB.result.prototype.hasNext = function hasNext(){
return this._data.next !== false;
};
};

/**
* Gets the previous page of the result.
Expand Down

0 comments on commit a59f38f

Please sign in to comment.