Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Use semicolons consistenly in js, remove backbone from webpack config

weronka34dd24aeb943
diff --git a/saleor/static/js/demo/storefront.js b/saleor/static/js/demo/storefront.js
index 4ffd8edbf5..5e89d7c131 100644
--- a/saleor/static/js/demo/storefront.js
+++ b/saleor/static/js/demo/storefront.js
@@ -34,7 +34,7 @@ $(document).ready((e) => {
event.stopPropagation()
})
$(document).click((e) => {
- $mobileNav.removeClass('open');
+ $mobileNav.removeClass('open')
})
})
@@ -64,9 +64,9 @@ $.get(summaryLink, (data) => {
$cartDropdown.html(data)
})
$('.navbar__brand__cart').hover((e) => {
- $cartDropdown.addClass("show");
+ $cartDropdown.addClass("show")
}, (e) => {
- $cartDropdown.removeClass("show");
+ $cartDropdown.removeClass("show")
})
$('.product-form button').click((e) => {
e.preventDefault()
@@ -86,9 +86,9 @@ $('.product-form button').click((e) => {
$('.badge').html(newQunatity).removeClass('hidden-xs-up')
$cartDropdown.addClass("show")
setTimeout((e) => {
- $cartDropdown.removeClass('show');
+ $cartDropdown.removeClass('show')
}, 2000)
})
}
})
-});
+})
diff --git a/webpack.config.js b/webpack.config.js
index 177d967a60..1443aa5f8b 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -23,8 +23,6 @@ var providePlugin = new webpack.ProvidePlugin({
'_': 'underscore',
jQuery: 'jquery',
'window.jQuery': 'jquery',
- Backbone: 'backbone',
- 'window.Backbone': 'backbone',
"window.Tether": 'tether'
});