Skip to content

Commit 7898a10

Browse files
committed
Add removeChild snippet
1 parent 349ab53 commit 7898a10

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ console.log(${1:obj});
3737
console.warn(${1:obj});
3838
```
3939

40-
4140
## DOM
4241

4342
### [ae] addEventListener
@@ -54,6 +53,12 @@ ${1:document}.addEventListener('${2:event}', function(e) {
5453
${1:document}.appendChild('${2}');
5554
```
5655
56+
### [rc] removeChild
57+
58+
```javascript
59+
${1:document}.removeChild('${2}');
60+
```
61+
5762
### [cel] createElement
5863
5964
```javascript
@@ -232,8 +237,11 @@ require('${1:module}');
232237
233238
## History
234239
240+
* [v0.1.4](https://github.com/zenorocha/sublime-snippets-js/releases/tag/0.1.4) August 15, 2013
241+
* Added `createDocumentFragment` and `removeChild` snippets
242+
* Renamed `appendChild` snippet filename
235243
* [v0.1.3](https://github.com/zenorocha/sublime-snippets-js/releases/tag/0.1.3) August 14, 2013
236-
* Fix duplicated [ce] shortcut
244+
* Fixed duplicated [ce] shortcut
237245
* [v0.1.2](https://github.com/zenorocha/sublime-snippets-js/releases/tag/0.1.2) August 14, 2013
238246
* Added timer function snippets
239247
* [v0.1.1](https://github.com/zenorocha/sublime-snippets-js/releases/tag/0.1.1) August 14, 2013

dom-childRemove.sublime-snippet

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<snippet>
2+
<content><![CDATA[
3+
${1:document}.removeChild('${2}');
4+
]]></content>
5+
<tabTrigger>rc</tabTrigger>
6+
<scope>source.js</scope>
7+
<description>removeChild</description>
8+
</snippet>

0 commit comments

Comments
 (0)