From 101fc5d02f86ec53bac1876effe52aa9bf0ab472 Mon Sep 17 00:00:00 2001 From: shiin Date: Sun, 13 May 2012 12:59:19 +0200 Subject: [PATCH] removed third parameter from OSRM.bind as it is no longer used --- WebContent/utils/OSRM.classes.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); }; };