[Pkg-javascript-commits] [sockjs-client] 221/434: Remove spurious comment from generated minified js
Tonnerre Lombard
tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:15 UTC 2014
This is an automated email from the git hooks/post-receive script.
tonnerre-guest pushed a commit to branch master
in repository sockjs-client.
commit b9f6a2ee8bd4f35d94fd4e01ce13d75cebbe498d
Author: Marek Majkowski <majek04 at gmail.com>
Date: Mon Nov 28 16:39:21 2011 +0000
Remove spurious comment from generated minified js
---
bin/render.coffee | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/bin/render.coffee b/bin/render.coffee
index f18307b..588af42 100644
--- a/bin/render.coffee
+++ b/bin/render.coffee
@@ -40,13 +40,15 @@ minify = (data, minify_options)->
render = (filename, depth, options) ->
tags =
include: (args) ->
- if args.length > 1 and args[1].indexOf('c') isnt -1
+ if (args.length > 1 and args[1].indexOf('c') isnt -1 and
+ options.minify is false)
options.comment = true
render(args[0], depth + ' ', options)
version: ->
options.version
include_and_minify: (args) ->
- if args.length > 1 and args[1].indexOf('c') isnt -1
+ if (args.length > 1 and args[1].indexOf('c') isnt -1 and
+ options.minify is false)
options.comment = true
d = render(args[0], depth + ' ', options)
if options.minify
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git
More information about the Pkg-javascript-commits
mailing list