1
0
mirror of synced 2025-12-12 01:18:00 +08:00
This commit is contained in:
redhoodsu
2023-07-04 13:13:38 +08:00
3 changed files with 5 additions and 8 deletions

View File

@@ -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",

View File

@@ -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()