coding standards if statement should always be followed by braces. also, add comment

git-svn-id: http://svn.openlayers.org/trunk/openlayers@2987 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2007-04-03 01:37:04 +00:00
parent 2734030a82
commit 8440cbaf43

View File

@@ -146,8 +146,12 @@ OpenLayers.Event = {
*
*/
_observeAndCache: function(element, name, observer, useCapture) {
if (!this.observers) this.observers = new Object();
//if observers cache has not yet been created, create it
if (!this.observers) {
this.observers = new Object();
}
//if there is not yet a hash entry for this element, add one
if (!this.observers[element.id]) {
this.observers[element.id] = new Array();