comparison default/node_modules/shoestring/src/dom/remove.js @ 0:1d038bc9b3d2 default tip

Up:default
author Liny <dev@neowd.com>
date Sat, 31 May 2025 09:21:51 +0800
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:1d038bc9b3d2
1 //>>excludeStart("exclude", pragmas.exclude);
2 define([ "shoestring" ], function(){
3 //>>excludeEnd("exclude");
4
5 /**
6 * Remove the current set of elements from the DOM.
7 *
8 * @return shoestring
9 * @this shoestring
10 */
11 shoestring.fn.remove = function(){
12 return this.each(function(){
13 if( this.parentNode ) {
14 this.parentNode.removeChild( this );
15 }
16 });
17 };
18
19 //>>excludeStart("exclude", pragmas.exclude);
20 });
21 //>>excludeEnd("exclude");