diff --git a/compressor/js.py b/compressor/js.py index b1234a7..f60cc7e 100644 --- a/compressor/js.py +++ b/compressor/js.py @@ -44,7 +44,7 @@ class JsCompressor(Compressor): if (settings.COMPRESS_ENABLED or settings.COMPRESS_PRECOMPILERS or kwargs.get('forced', False)): self.split_contents() - if hasattr(self, 'nodes'): + if hasattr(self, 'extra_nodes'): ret = [] for extra, subnode in self.extra_nodes: subnode.extra_context.update({'extra': extra})