Skip to content

Commit a0efc25

Browse files
committed
fixed the angle library and codemirror after minification
1 parent 4c99a41 commit a0efc25

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

grunt.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ module.exports = function(grunt) {
216216
globals: {module: true, test: true, ok: true, equal: true, deepEqual: true, QUnit: true}
217217
}
218218
},
219-
uglify: {},
219+
uglify: {
220+
codegen: { ascii_only: true }
221+
},
220222
cssmin: {
221223
css: {
222224
src: 'dist/style/css/app.concat.css',

lib/utils/angle_lib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
xhr.onreadystatechange = function(ev) {
196196
if (xhr.readyState != 4 || xhr.status != 200)
197197
return;
198-
var blob = new Blob([xhr.response, "\n", WorkerInit.toString(), "\nWorkerInit();"]);
198+
var blob = new Blob([xhr.response, "\n(", WorkerInit.toString(), ")();"]);
199199
self.worker = new Worker(webkitURL.createObjectURL(blob));
200200
self.worker.onmessage = function(ev) {
201201
self.onWorkerMessage(ev);

0 commit comments

Comments
 (0)