removed third parameter from OSRM.bind as it is no longer used

This commit is contained in:
shiin 2012-05-13 12:59:19 +02:00
parent e9736173b0
commit 101fc5d02f

View File

@ -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);
};
};