@@ -251,7 +251,7 @@ function jqLiteClone(element) {
251
251
return element . cloneNode ( true ) ;
252
252
}
253
253
254
- function jqLiteDealoc ( element , onlyDescendants ) {
254
+ function jqLiteDealoc ( element , onlyDescendants ) {
255
255
if ( ! onlyDescendants ) jqLiteRemoveData ( element ) ;
256
256
257
257
if ( element . querySelectorAll ) {
@@ -493,7 +493,7 @@ var JQLitePrototype = JQLite.prototype = {
493
493
} ,
494
494
toString : function ( ) {
495
495
var value = [ ] ;
496
- forEach ( this , function ( e ) { value . push ( '' + e ) ; } ) ;
496
+ forEach ( this , function ( e ) { value . push ( '' + e ) ; } ) ;
497
497
return '[' + value . join ( ', ' ) + ']' ;
498
498
} ,
499
499
@@ -584,7 +584,7 @@ forEach({
584
584
}
585
585
} ,
586
586
587
- attr : function ( element , name , value ) {
587
+ attr : function ( element , name , value ) {
588
588
var lowercasedName = lowercase ( name ) ;
589
589
if ( BOOLEAN_ATTR [ lowercasedName ] ) {
590
590
if ( isDefined ( value ) ) {
@@ -658,7 +658,7 @@ forEach({
658
658
} ,
659
659
660
660
empty : jqLiteEmpty
661
- } , function ( fn , name ) {
661
+ } , function ( fn , name ) {
662
662
/**
663
663
* Properties: writes return selection, reads return first value
664
664
*/
@@ -766,7 +766,7 @@ function createEventHandler(element, events) {
766
766
forEach ( {
767
767
removeData : jqLiteRemoveData ,
768
768
769
- on : function jqLiteOn ( element , type , fn , unsupported ) {
769
+ on : function jqLiteOn ( element , type , fn , unsupported ) {
770
770
if ( isDefined ( unsupported ) ) throw jqLiteMinErr ( 'onargs' , 'jqLite#on() does not support the `selector` or `eventData` parameters' ) ;
771
771
772
772
// Do not add event handlers to non-elements because they will not be cleaned up.
@@ -836,7 +836,7 @@ forEach({
836
836
replaceWith : function ( element , replaceNode ) {
837
837
var index , parent = element . parentNode ;
838
838
jqLiteDealoc ( element ) ;
839
- forEach ( new JQLite ( replaceNode ) , function ( node ) {
839
+ forEach ( new JQLite ( replaceNode ) , function ( node ) {
840
840
if ( index ) {
841
841
parent . insertBefore ( node , index . nextSibling ) ;
842
842
} else {
@@ -848,7 +848,7 @@ forEach({
848
848
849
849
children : function ( element ) {
850
850
var children = [ ] ;
851
- forEach ( element . childNodes , function ( element ) {
851
+ forEach ( element . childNodes , function ( element ) {
852
852
if ( element . nodeType === NODE_TYPE_ELEMENT )
853
853
children . push ( element ) ;
854
854
} ) ;
@@ -874,7 +874,7 @@ forEach({
874
874
prepend : function ( element , node ) {
875
875
if ( element . nodeType === NODE_TYPE_ELEMENT ) {
876
876
var index = element . firstChild ;
877
- forEach ( new JQLite ( node ) , function ( child ) {
877
+ forEach ( new JQLite ( node ) , function ( child ) {
878
878
element . insertBefore ( child , index ) ;
879
879
} ) ;
880
880
}
@@ -911,7 +911,7 @@ forEach({
911
911
912
912
toggleClass : function ( element , selector , condition ) {
913
913
if ( selector ) {
914
- forEach ( selector . split ( ' ' ) , function ( className ) {
914
+ forEach ( selector . split ( ' ' ) , function ( className ) {
915
915
var classCondition = condition ;
916
916
if ( isUndefined ( classCondition ) ) {
917
917
classCondition = ! jqLiteHasClass ( element , className ) ;
@@ -976,7 +976,7 @@ forEach({
976
976
} ) ;
977
977
}
978
978
}
979
- } , function ( fn , name ) {
979
+ } , function ( fn , name ) {
980
980
/**
981
981
* chaining functions
982
982
*/
0 commit comments