Skip to content

Commit

Permalink
impr: changed default value for unused attributes in models from "fal…
Browse files Browse the repository at this point in the history
…se" to "undefined" (close #6)
  • Loading branch information
JohnnyTheTank committed Dec 20, 2015
1 parent ea88f84 commit 472cd30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/aping-plugin-youtube.min.js

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

8 changes: 4 additions & 4 deletions src/aping-youtube-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ jjtApingYoutube.service('apingYoutubeHelper', ['apingModels', 'apingTimeHelper',
this.getSocialItemByJsonData = function (_item) {
var socialObject = apingModels.getNew("social", "youtube");
$.extend(true, socialObject, {
blog_name: _item.snippet.channelTitle || false,
blog_id: _item.snippet.channelId || false,
blog_name: _item.snippet.channelTitle || undefined,
blog_id: _item.snippet.channelId || undefined,
blog_link: this.getThisPlattformLink()+"channel/" + _item.snippet.channelId,
intern_type: _item.id.kind,
intern_id: _item.id.videoId || _item.snippet.resourceId.videoId,
Expand Down Expand Up @@ -110,8 +110,8 @@ jjtApingYoutube.service('apingYoutubeHelper', ['apingModels', 'apingTimeHelper',
this.getVideoItemByJsonData = function (_item) {
var videoObject = apingModels.getNew("video", "youtube");
$.extend(true, videoObject, {
blog_name: _item.snippet.channelTitle || false,
blog_id: _item.snippet.channelId || false,
blog_name: _item.snippet.channelTitle || undefined,
blog_id: _item.snippet.channelId || undefined,
blog_link: this.getThisPlattformLink()+"channel/" + _item.snippet.channelId,
intern_type: _item.id.kind,
intern_id: _item.id.videoId || _item.snippet.resourceId.videoId,
Expand Down

0 comments on commit 472cd30

Please sign in to comment.