Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-pipeline
Commits
51042e98
Commit
51042e98
authored
Aug 01, 2015
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #448 from Alexx-G/fix/js_wrapping_output
Fix for wrapping javascript code.
parents
260b127e
6d915d18
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
AUTHORS
+1
-0
docs/configuration.rst
+3
-1
pipeline/compressors/__init__.py
+1
-1
No files found.
AUTHORS
View file @
51042e98
...
...
@@ -97,3 +97,4 @@ or just made Pipeline more awesome.
* Wictor Olseryd <wictor@olseryd.se>
* Zachary Kazanski <kazanski.zachary@gmail.com>
* Zenobius Jiricek <zenobius.jiricek@gmail.com>
* Alex Gavrișco <alexandr@gavrisco.com>
docs/configuration.rst
View file @
51042e98
...
...
@@ -253,7 +253,9 @@ Wrapped javascript output
All javascript output is wrapped in an anonymous function : ::
(function(){ ... })();
(function(){
//JS output...
})();
This safety wrapper, make it difficult to pollute the global namespace by accident and improve performance.
...
...
pipeline/compressors/__init__.py
View file @
51042e98
...
...
@@ -60,7 +60,7 @@ class Compressor(object):
js
=
js
+
self
.
compile_templates
(
templates
)
if
not
settings
.
PIPELINE_DISABLE_WRAPPER
:
js
=
"(function() {
%
s
}).call(this);"
%
js
js
=
"(function() {
\n
%
s
\n
}).call(this);"
%
js
compressor
=
self
.
js_compressor
if
compressor
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment