Skip to content

Commit

Permalink
fix: fixed order (by date)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyTheTank committed Dec 20, 2015
1 parent dd6c897 commit 0e41fa5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"authors": [
"Jonathan Hornung <[email protected]>"
],
"version": "0.3.6",
"version": "0.3.7",
"description": "angular factory for youtube rest api connection",
"main": "dist/angular-youtube-api-factory.min.js",
"moduleType": [],
Expand Down
4 changes: 2 additions & 2 deletions dist/angular-youtube-api-factory.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-youtube-api-factory",
"version": "0.3.6",
"version": "0.3.7",
"description": "angularjs factory for youtube json rest api requests",
"main": "Gruntfile.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/angular-youtube-api-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ angular.module("jtt_youtube", [])

if (typeof _params.order !== "undefined") {
youtubeSearchData.object.order = _params.order;
} else {
youtubeSearchData.object.order = "date";
}
if (typeof _params.q !== "undefined") {
youtubeSearchData.object.q = _params.q;
Expand All @@ -109,6 +111,8 @@ angular.module("jtt_youtube", [])
youtubeSearchData.object.type = "video";
if (typeof _params.order !== "undefined") {
youtubeSearchData.object.order = _params.order;
} else {
youtubeSearchData.object.order = "date";
}
if (typeof _params.q !== "undefined") {
youtubeSearchData.object.q = _params.q;
Expand Down

0 comments on commit 0e41fa5

Please sign in to comment.