[extensions-web] js: Remove idiocy



commit 23d7c73e5c59c42fc8c28ab55c2b5f55f6dbd3c4
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Nov 28 14:53:42 2011 -0500

    js: Remove idiocy
    
    The whole point of this function is to figure out what to do in case
    the map has no "current" property. I don't remember why I added this
    line.

 sweettooth/static/js/extensionUtils.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/static/js/extensionUtils.js b/sweettooth/static/js/extensionUtils.js
index e617b44..8aecad8 100644
--- a/sweettooth/static/js/extensionUtils.js
+++ b/sweettooth/static/js/extensionUtils.js
@@ -39,7 +39,7 @@ define([], function() {
     };
 
     module.grabProperExtensionVersion = function(map, current) {
-        if (!map || !map.hasOwnProperty(current))
+        if (!map)
             return null;
 
         var versionA = map[current];



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]