Merge branch 'master' of https://github.com/liriliri/eruda
This commit is contained in:
@@ -62,9 +62,9 @@
|
||||
"karma-jquery": "^0.2.4",
|
||||
"karma-sourcemap-loader": "^0.3.7",
|
||||
"karma-webpack": "^5.0.0",
|
||||
"licia": "^1.38.0",
|
||||
"licia": "^1.38.2",
|
||||
"luna-box-model": "^0.1.0",
|
||||
"luna-console": "^1.3.0",
|
||||
"luna-console": "^1.3.3",
|
||||
"luna-data-grid": "^0.4.3",
|
||||
"luna-dom-viewer": "^1.2.3",
|
||||
"luna-modal": "^1.0.0",
|
||||
|
||||
@@ -4,6 +4,7 @@ import $ from 'licia/$'
|
||||
import each from 'licia/each'
|
||||
import escape from 'licia/escape'
|
||||
import map from 'licia/map'
|
||||
import remove from 'licia/remove'
|
||||
import evalCss from '../lib/evalCss'
|
||||
import { classPrefix as c } from '../lib/util'
|
||||
|
||||
@@ -36,11 +37,7 @@ export default class Snippets extends Tool {
|
||||
return this
|
||||
}
|
||||
remove(name) {
|
||||
const snippets = this._snippets
|
||||
|
||||
for (let i = 0, len = snippets.length; i < len; i++) {
|
||||
if (snippets[i].name === name) snippets.splice(i, 1)
|
||||
}
|
||||
remove(this._snippets, (snippet) => snippet.name === name)
|
||||
|
||||
this._render()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user