Skip to content

Commit

Permalink
Merge pull request googlearchive#41 from mbleigh/order-by-value
Browse files Browse the repository at this point in the history
Adds orderByValue (new feature of Firebase 2.2)
  • Loading branch information
kevinpschaaf committed Feb 17, 2015
2 parents af8d37a + b4437dc commit 064dfad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"private": true,
"dependencies": {
"polymer": "Polymer/polymer#master",
"firebase": "^2"
"firebase": "^2.2"
}
}
9 changes: 9 additions & 0 deletions firebase-element.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@ <h3>My Firebase Data</h3>
* @type Boolean
*/
orderByPriority: false,
/**
* Specify to order by value the set of records reflected on the client.
* @attribute orderByValue
* @type Boolean
*/
orderByValue: false,
/**
* Specify to create a query which includes children which match the specified value. The argument type depends on which orderBy*() function was used in this query. Specify a value that matches the orderBy*() type.
* @attribute equalTo
Expand Down Expand Up @@ -302,6 +308,9 @@ <h3>My Firebase Data</h3>
if (this.orderByPriority) {
query = query.orderByPriority();
}
if (this.orderByValue) {
query = query.orderByValue();
}
if (this.equalTo) {
query = query.equalTo(this.equalTo);
}
Expand Down

0 comments on commit 064dfad

Please sign in to comment.