Updated version of JSMin downloaded from
http://www.crockford.com/javascript/jsmin.html , fixes #617 . git-svn-id: http://svn.openlayers.org/trunk/openlayers@2972 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
+6
-2
@@ -5,7 +5,7 @@
|
|||||||
# license.
|
# license.
|
||||||
#
|
#
|
||||||
# /* jsmin.c
|
# /* jsmin.c
|
||||||
# 2003-04-21
|
# 2007-01-08
|
||||||
#
|
#
|
||||||
# Copyright (c) 2002 Douglas Crockford (www.crockford.com)
|
# Copyright (c) 2002 Douglas Crockford (www.crockford.com)
|
||||||
#
|
#
|
||||||
@@ -138,7 +138,11 @@ class JavascriptMinify(object):
|
|||||||
|
|
||||||
if action <= 3:
|
if action <= 3:
|
||||||
self.theB = self._next()
|
self.theB = self._next()
|
||||||
if self.theB == '/' and (self.theA == '(' or self.theA == ',' or self.theA == '='):
|
if self.theB == '/' and (self.theA == '(' or self.theA == ',' or
|
||||||
|
self.theA == '=' or self.theA == ':' or
|
||||||
|
self.theA == '[' or self.theA == '?' or
|
||||||
|
self.theA == '!' or self.theA == '&' or
|
||||||
|
self.theA == '|'):
|
||||||
self._outA()
|
self._outA()
|
||||||
self._outB()
|
self._outB()
|
||||||
while 1:
|
while 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user