removing unneeded function call
This commit is contained in:
@@ -23,16 +23,16 @@ module.exports = function(grunt) {
|
|||||||
server: {
|
server: {
|
||||||
options: {
|
options: {
|
||||||
port: 3001,
|
port: 3001,
|
||||||
base: 'build',
|
base: 'build'//,
|
||||||
middleware: function(connect, options) {
|
// middleware: function(connect, options) {
|
||||||
return [
|
// return [
|
||||||
function(req, res) {
|
// function(req, res) {
|
||||||
var filename = 'build/' + req.url;
|
// var filename = 'build/' + req.url;
|
||||||
if ((filename === 'build//') || !grunt.file.exists(filename)) filename = 'build/index.html';
|
// if ((filename === 'build//') || !grunt.file.exists(filename)) filename = 'build/index.html';
|
||||||
res.end(grunt.file.read(filename));
|
// res.end(grunt.file.read(filename));
|
||||||
}
|
// }
|
||||||
];
|
// ];
|
||||||
},
|
// },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ var MenuItemListComponent = React.createClass({
|
|||||||
_onCartClick: function(e) {
|
_onCartClick: function(e) {
|
||||||
NavigationActions.goToCart();
|
NavigationActions.goToCart();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.cancelImmediatePropagation();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user