removing unneeded function call

This commit is contained in:
Edin Dazdarevic
2015-06-02 11:40:15 +02:00
parent e35489a16e
commit 055f9ab3fa
2 changed files with 10 additions and 11 deletions

View File

@@ -23,16 +23,16 @@ module.exports = function(grunt) {
server: {
options: {
port: 3001,
base: 'build',
middleware: function(connect, options) {
return [
function(req, res) {
var filename = 'build/' + req.url;
if ((filename === 'build//') || !grunt.file.exists(filename)) filename = 'build/index.html';
res.end(grunt.file.read(filename));
}
];
},
base: 'build'//,
// middleware: function(connect, options) {
// return [
// function(req, res) {
// var filename = 'build/' + req.url;
// if ((filename === 'build//') || !grunt.file.exists(filename)) filename = 'build/index.html';
// res.end(grunt.file.read(filename));
// }
// ];
// },
}
}
},

View File

@@ -46,7 +46,6 @@ var MenuItemListComponent = React.createClass({
_onCartClick: function(e) {
NavigationActions.goToCart();
e.preventDefault();
e.cancelImmediatePropagation();
},
render: function() {