Changeset 2972
- Timestamp:
- 04/02/07 08:59:28 (1 year ago)
- Files:
-
- trunk/openlayers/tools/jsmin.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/tools/jsmin.py
r1905 r2972 6 6 # 7 7 # /* jsmin.c 8 # 200 3-04-219 # 8 # 2007-01-08 9 # 10 10 # Copyright (c) 2002 Douglas Crockford (www.crockford.com) 11 # 11 # 12 12 # Permission is hereby granted, free of charge, to any person obtaining a copy of 13 13 # this software and associated documentation files (the "Software"), to deal in … … 16 16 # of the Software, and to permit persons to whom the Software is furnished to do 17 17 # so, subject to the following conditions: 18 # 18 # 19 19 # The above copyright notice and this permission notice shall be included in all 20 20 # copies or substantial portions of the Software. 21 # 21 # 22 22 # The Software shall be used for Good, not Evil. 23 # 23 # 24 24 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 25 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, … … 121 121 if action <= 1: 122 122 self._outA() 123 123 124 124 if action <= 2: 125 125 self.theA = self.theB … … 139 139 if action <= 3: 140 140 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 == '|'): 142 146 self._outA() 143 147 self._outB()
