Skip to content

Commit 12f9d83

Browse files
committed
Fixed JSHint warnings
1 parent 32c1686 commit 12f9d83

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

dist/paypal-button-minicart.min.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/paypal-button.min.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/paypal-button.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ PAYPAL.apps = PAYPAL.apps || {};
1313
var app = {},
1414
paypalURL = "https://www.paypal.com/cgi-bin/webscr",
1515
qrCodeURL = "https://www.paypal.com/webapps/ppint/qrcode?data={url}&pattern={pattern}&height={size}",
16-
scriptURL = "paypal-button.min.js",
1716
bnCode = "JavaScriptButton_{type}",
1817
prettyParams = {
1918
id: "hosted_button_id",
@@ -197,10 +196,9 @@ PAYPAL.apps = PAYPAL.apps || {};
197196
*
198197
* @param data {Object} An object of key/value data to set as button params
199198
* @param size {String} The size of QR code's longest side
200-
* @param locale {String} The locale
201199
* @return {HTMLElement}
202200
*/
203-
function buildQR(data, size, locale) {
201+
function buildQR(data, size) {
204202
var img = document.createElement("img"),
205203
url = paypalURL + "?",
206204
pattern = 13,

0 commit comments

Comments
 (0)