@@ -249,11 +249,8 @@ describe(module.id, function () {
249249 it ( "NSMutableArrayMethods" , function ( ) {
250250 var JSMutableArray = NSMutableArray . extend ( {
251251 init : function ( ) {
252- console . log ( "[NSMutableArrayMethods] js init enter" , this . nativeAddress ) ;
253252 var self = NSMutableArray . prototype . init . apply ( this , arguments ) ;
254- console . log ( "[NSMutableArrayMethods] js init base returned" , self === this , self . nativeAddress ) ;
255253 self . _array = [ ] ;
256- console . log ( "[NSMutableArrayMethods] js init array ready" , self . _array . length ) ;
257254 return self ;
258255 } ,
259256// TODO
@@ -263,40 +260,27 @@ describe(module.id, function () {
263260// NSMutableArray.prototype.dealloc.apply(this, arguments);
264261// },
265262 insertObjectAtIndex : function ( anObject , index ) {
266- console . log ( "[NSMutableArrayMethods] js insert enter" , anObject , index , this . _array && this . _array . length ) ;
267263 this . _array . splice ( index , 0 , anObject ) ;
268- console . log ( "[NSMutableArrayMethods] js insert exit" , this . _array . length ) ;
269264 } ,
270265 removeObjectAtIndex : function ( index ) {
271- console . log ( "[NSMutableArrayMethods] js remove enter" , index , this . _array && this . _array . length ) ;
272266 this . _array . splice ( index , 1 ) ;
273- console . log ( "[NSMutableArrayMethods] js remove exit" , this . _array . length ) ;
274267 } ,
275268 addObject : function ( anObject ) {
276- console . log ( "[NSMutableArrayMethods] js add enter" , anObject , this . _array && this . _array . length ) ;
277269 this . _array . push ( anObject ) ;
278- console . log ( "[NSMutableArrayMethods] js add exit" , this . _array . length ) ;
279270 } ,
280271 removeLastObject : function ( ) {
281- console . log ( "[NSMutableArrayMethods] js removeLast enter" , this . _array && this . _array . length ) ;
282272 this . _array . pop ( ) ;
283- console . log ( "[NSMutableArrayMethods] js removeLast exit" , this . _array . length ) ;
284273 } ,
285274 replaceObjectAtIndexWithObject : function ( index , anObject ) {
286- console . log ( "[NSMutableArrayMethods] js replace enter" , index , anObject , this . _array && this . _array . length ) ;
287275 this . _array [ index ] = anObject ;
288- console . log ( "[NSMutableArrayMethods] js replace exit" , this . _array . length ) ;
289276 } ,
290277 objectAtIndex : function ( index ) {
291- console . log ( "[NSMutableArrayMethods] js objectAtIndex" , index , this . _array && this . _array . length ) ;
292278 return this . _array [ index ] ;
293279 } ,
294280 get count ( ) {
295- console . log ( "[NSMutableArrayMethods] js count" , this . _array && this . _array . length ) ;
296281 return this . _array . length ;
297282 } ,
298283 get hash ( ) {
299- console . log ( "[NSMutableArrayMethods] js hash enter" ) ;
300284 return this . count ;
301285 }
302286 } , {
@@ -305,9 +289,7 @@ describe(module.id, function () {
305289
306290 ( function ( ) {
307291 var array = new JSMutableArray ( ) ;
308- console . log ( "[NSMutableArrayMethods] js before native callback" , array . nativeAddress , array . _array && array . _array . length ) ;
309292 TNSTestNativeCallbacks . apiNSMutableArrayMethods ( array ) ;
310- console . log ( "[NSMutableArrayMethods] js after native callback" , array . _array && array . _array . length ) ;
311293 } ( ) ) ;
312294 gc ( ) ;
313295
0 commit comments