From 1d17ebba377750798acec2577f06db416a382dc1 Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 24 Jul 2007 21:18:01 +0000 Subject: [PATCH] coding standards git-svn-id: http://svn.openlayers.org/trunk/openlayers@3802 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/BaseTypes.js | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/lib/OpenLayers/BaseTypes.js b/lib/OpenLayers/BaseTypes.js index c470df8253..da41163621 100644 --- a/lib/OpenLayers/BaseTypes.js +++ b/lib/OpenLayers/BaseTypes.js @@ -152,14 +152,20 @@ Number.prototype.limitSigDigs = function(sig) { * {Function} */ Function.prototype.bind = function() { - var __method = this, args = [], object = arguments[0]; - for (var i = 1; i < arguments.length; i++) - args.push(arguments[i]); - return function(moreargs) { - for (var i = 0; i < arguments.length; i++) - args.push(arguments[i]); - return __method.apply(object, args); - } + var __method = this; + var args = []; + var object = arguments[0]; + + for (var i = 1; i < arguments.length; i++) { + args.push(arguments[i]); + } + + return function(moreargs) { + for (var i = 0; i < arguments.length; i++) { + args.push(arguments[i]); + } + return __method.apply(object, args); + }; }; /** @@ -174,8 +180,8 @@ Function.prototype.bind = function() { * {Function} */ Function.prototype.bindAsEventListener = function(object) { - var __method = this; - return function(event) { - return __method.call(object, event || window.event); - } + var __method = this; + return function(event) { + return __method.call(object, event || window.event); + }; }; \ No newline at end of file