Skip to content

Commit

Permalink
fix: fixed small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyTheTank committed Nov 18, 2015
1 parent 77c118b commit 7ac21fb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 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.4",
"version": "0.3.5",
"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.4",
"version": "0.3.5",
"description": "angularjs factory for youtube json rest api requests",
"main": "Gruntfile.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/angular-youtube-api-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ angular.module("jtt_youtube", [])
maxResults: _params.maxResults || 20,
};

if (_params.searchString) {
youtubeSearchData.object.q = _params.searchString;
if (_params.q) {
youtubeSearchData.object.q = _params.q;
}

youtubeSearchData.url = this.getApiBaseUrl()+"search?";
Expand All @@ -95,7 +95,7 @@ angular.module("jtt_youtube", [])
youtubeSearchData.object = {
part: "id,snippet",
type: "video",
q: _params.searchString,
q: _params.q,
order: _params.order || "date",
key: _params.key,
maxResults: _params.maxResults || 20,
Expand Down

0 comments on commit 7ac21fb

Please sign in to comment.