0
|
1 //>>excludeStart("exclude", pragmas.exclude);
|
|
2 define([ "shoestring" ], function(){
|
|
3 //>>excludeEnd("exclude");
|
|
4
|
|
5 /**
|
|
6 * Wraps the child elements in the provided HTML.
|
|
7 *
|
|
8 * @param {string} html The wrapping HTML.
|
|
9 * @return shoestring
|
|
10 * @this shoestring
|
|
11 */
|
|
12 shoestring.fn.wrapInner = function( html ){
|
|
13 return this.each(function(){
|
|
14 var inH = this.innerHTML;
|
|
15
|
|
16 this.innerHTML = "";
|
|
17 shoestring( this ).append( shoestring( html ).html( inH ) );
|
|
18 });
|
|
19 };
|
|
20
|
|
21 //>>excludeStart("exclude", pragmas.exclude);
|
|
22 });
|
|
23 //>>excludeEnd("exclude");
|