OpenLayers OpenLayers
Show
Ignore:
Timestamp:
04/02/07 08:59:28 (2 years ago)
Author:
crschmidt
Message:

Updated version of JSMin downloaded from
http://www.crockford.com/javascript/jsmin.html , fixes #617 .

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/tools/jsmin.py

    r1905 r2972  
    66# 
    77# /* jsmin.c 
    8 #    2003-04-21 
    9 #  
     8#    2007-01-08 
     9# 
    1010# Copyright (c) 2002 Douglas Crockford  (www.crockford.com) 
    11 #  
     11# 
    1212# Permission is hereby granted, free of charge, to any person obtaining a copy of 
    1313# this software and associated documentation files (the "Software"), to deal in 
     
    1616# of the Software, and to permit persons to whom the Software is furnished to do 
    1717# so, subject to the following conditions: 
    18 #  
     18# 
    1919# The above copyright notice and this permission notice shall be included in all 
    2020# copies or substantial portions of the Software. 
    21 #  
     21# 
    2222# The Software shall be used for Good, not Evil. 
    23 #  
     23# 
    2424# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
    2525# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
     
    121121        if action <= 1: 
    122122            self._outA() 
    123              
     123 
    124124        if action <= 2: 
    125125            self.theA = self.theB 
     
    139139        if action <= 3: 
    140140            self.theB = self._next() 
    141             if self.theB == '/' and (self.theA == '(' or self.theA == ',' or self.theA == '='): 
     141            if self.theB == '/' and (self.theA == '(' or self.theA == ',' or 
     142                                     self.theA == '=' or self.theA == ':' or 
     143                                     self.theA == '[' or self.theA == '?' or 
     144                                     self.theA == '!' or self.theA == '&' or 
     145                                     self.theA == '|'): 
    142146                self._outA() 
    143147                self._outB()