0
|
1 //>>excludeStart("exclude", pragmas.exclude);
|
|
2 define([ "shoestring", "dom/propFix.js" ], function(){
|
|
3 //>>excludeEnd("exclude");
|
|
4
|
|
5 /**
|
|
6 * Remove a proprety from each element in the current set.
|
|
7 *
|
|
8 * @param {string} name The name of the property.
|
|
9 * @return shoestring
|
|
10 * @this shoestring
|
|
11 */
|
|
12 shoestring.fn.removeProp = function( property ){
|
|
13 var name = shoestring.propFix[ property ] || property;
|
|
14
|
|
15 return this.each(function(){
|
|
16 this[ name ] = undefined;
|
|
17 delete this[ name ];
|
|
18 });
|
|
19 };
|
|
20
|
|
21 //>>excludeStart("exclude", pragmas.exclude);
|
|
22 });
|
|
23 //>>excludeEnd("exclude");
|