@@ -12,15 +12,16 @@ dop.core.splice = function(array, args) {
1212
1313 // If enviroment do not allow proxies (objectTarget and objectProxy are same object in that case)
1414 // or if the array is the proxy itself
15- if ( path = dop . getObjectPath ( array ) ) {
15+ path = dop . getObjectPath ( array )
16+ if ( path ) {
1617
1718 var argslength = args . length ,
1819 length = objectTarget . length ,
1920 index = 2 ,
2021 start = Number ( args [ 0 ] ) ,
21- deleteCount = ( Number ( args [ 1 ] ) > 0 ) ? args [ 1 ] : 0 ,
22+ // deleteCount = (Number(args[1])>0) ? args[1] : 0,
2223 itemslength = ( args . length > 2 ) ? ( args . length - 2 ) : 0 ,
23- end , item , object_dop ;
24+ item ;
2425
2526
2627 // Defaults for start
@@ -32,13 +33,13 @@ dop.core.splice = function(array, args) {
3233 start = originalLength ;
3334
3435
35- // We dont need update becase no items remaining after splice
36- end = ( argslength === 1 ) ? 0 :
37- // If deleteCount is the same of items to add means the new lengh is the same and we only need to update the new elements
38- ( argslength > 2 && deleteCount === itemslength ) ?
39- start + deleteCount
40- :
41- objectTarget . length ;
36+ // // We dont need update becase no items remaining after splice
37+ // end = (argslength===1) ? 0 :
38+ // // If deleteCount is the same of items to add means the new lengh is the same and we only need to update the new elements
39+ // (argslength>2 && deleteCount===itemslength) ?
40+ // start+deleteCount
41+ // :
42+ // objectTarget.length;
4243
4344
4445 // We must register new objects
0 commit comments