Skip to content

Commit 9d088fa

Browse files
committed
Use punycode to parse unicode characters correctly
1 parent b8d3688 commit 9d088fa

11 files changed

Lines changed: 661 additions & 17 deletions

File tree

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "src/fabric"]
22
path = src/fabric
33
url = https://github.com/kangax/fabric.js.git
4+
[submodule "src/punycode"]
5+
path = src/punycode
6+
url = https://github.com/bestiejs/punycode.js.git

Gruntfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = function(grunt) {
2323
concat: {
2424
dist: {
2525
src: [
26-
'src/promise.js', 'src/fallback.js', 'src/*.js', 'src/renderers/*.js'
26+
'src/promise.js', 'src/fallback.js', 'src/punycode/punycode.js', 'src/core.js', 'src/*.js', 'src/renderers/*.js'
2727
],
2828
dest: 'dist/<%= pkg.name %>.js',
2929
options:{
@@ -38,7 +38,7 @@ module.exports = function(grunt) {
3838
dest: 'dist/<%= pkg.name %>.svg.js',
3939
options:{
4040
banner: meta.banner + '\n(function(window, document, exports, undefined){\n\n',
41-
footer: '\n})(window, document, html2canvas);'
41+
footer: '\n}).call({}, window, document, html2canvas);'
4242
}
4343
}
4444
},

0 commit comments

Comments
 (0)