Dev: Small changes

This commit is contained in:
surunzi
2016-10-10 16:16:46 +08:00
parent 48f4001b52
commit 4e056dd7a3
3 changed files with 4 additions and 2 deletions

View File

@@ -6,7 +6,7 @@
"scripts": {
"release": "webpack && webpack -p --config script/release.js",
"dev": "webpack-dev-server",
"cpTestLib": "bash script/cpTestLib.sh",
"cpTestLib": "script/cpTestLib.sh",
"utilDoc": "eustia doc src/lib/util.js -f md -o doc/Util_Api.md -t \"Eruda Util Documentation\""
},
"repository": {

View File

@@ -1,3 +1,5 @@
#!/usr/bin/env bash
mkdir -p test/lib
cp node_modules/jasmine-core/lib/jasmine-core/{jasmine.css,jasmine.js,jasmine-html.js,boot.js} test/lib/
cp node_modules/jasmine-jquery/lib/jasmine-jquery.js test/lib/

View File

@@ -112,7 +112,7 @@ function createEl(key, val, firstLevel)
{
return `<li>
${wrapKey(key)}
<span class="eruda-function">${encode(val).replace('function', '<span style="color:#a71d5d">function</span>')}</span>
<span class="eruda-function">${encode(val).replace('function', '')}</span>
</li>`;
}
if (val === '(...)' || val === 'undefined' || val === 'Symbol')