Remove default arguments from function definitions

このコミットが含まれているのは:
Omar Roth 2019-07-20 20:33:44 -05:00
コミット d034fecc89
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: B8254FB7EC3D37F2
3個のファイルの変更12行の追加5行の削除

ファイルの表示

@ -1,4 +1,6 @@
function get_playlist(plid, retries = 5) {
function get_playlist(plid, retries) {
if (retries == undefined) retries = 5;
if (retries <= 0) {
console.log('Failed to pull playlist');
return;

ファイルの表示

@ -1,6 +1,8 @@
var notifications, delivered;
function get_subscriptions(callback, retries = 5) {
function get_subscriptions(callback, retries) {
if (retries == undefined) retries = 5;
if (retries <= 0) {
return;
}

ファイルの表示

@ -109,7 +109,8 @@ function number_with_separator(val) {
return val;
}
function get_playlist(plid, retries = 5) {
function get_playlist(plid, retries) {
if (retries == undefined) retries = 5;
playlist = document.getElementById('playlist');
if (retries <= 0) {
@ -194,7 +195,8 @@ function get_playlist(plid, retries = 5) {
xhr.send();
}
function get_reddit_comments(retries = 5) {
function get_reddit_comments(retries) {
if (retries == undefined) retries = 5;
comments = document.getElementById('comments');
if (retries <= 0) {
@ -270,7 +272,8 @@ function get_reddit_comments(retries = 5) {
xhr.send();
}
function get_youtube_comments(retries = 5) {
function get_youtube_comments(retries) {
if (retries == undefined) retries = 5;
comments = document.getElementById('comments');
if (retries <= 0) {