diff --git a/WebContent/utils/OSRM.classes.js b/WebContent/utils/OSRM.classes.js index b97be6770..14c8e292a 100644 --- a/WebContent/utils/OSRM.classes.js +++ b/WebContent/utils/OSRM.classes.js @@ -40,10 +40,9 @@ OSRM.extend = function( target_class, properties ) { // bind a function to an execution context, i.e. an object (needed for correcting this pointers) -OSRM.bind = function( context, fct1, fct2 ) { +OSRM.bind = function( context, fct1 ) { return function() { - if(fct1) fct1.apply(context, arguments); - if(fct2) fct2.apply(context, arguments); + fct1.apply(context, arguments); }; };