@@ -18,7 +18,6 @@ angular.module('angular-meteor', ['angular-meteor.meteor-collection'])
1818 $rootScope . $watch ( function ( ) {
1919 return instance ;
2020 } , function ( ) {
21- console . log ( 'updating' , instanceId , instance ) ;
2221 serverInstances . update ( { _id : instanceId } , { $set : { properties : instance } } ) ;
2322 } , true ) ;
2423
@@ -32,7 +31,6 @@ angular.module('angular-meteor', ['angular-meteor.meteor-collection'])
3231 self . added ( 'serverInstances' , id , fields ) ;
3332 } ,
3433 changed : function ( id , fields ) {
35- console . log ( 'changed' , id , fields ) ;
3634 self . changed ( 'serverInstances' , id , fields ) ;
3735 } ,
3836 removed : function ( id ) {
@@ -47,25 +45,14 @@ angular.module('angular-meteor', ['angular-meteor.meteor-collection'])
4745 } )
4846 } ) ;
4947 } )
50- . run ( function ( $rootScope , ServerAPI ) {
51- //var origRun = Meteor._SynchronousQueue.prototype._run;
52- //
53- //console.log('replacing run');
54- //Meteor._SynchronousQueue.prototype._run = function() {
55- // console.log('running from queue');
56- // var result = origRun.apply(this, arguments);
57- // $rootScope.$apply();
58- // return result;
59- //};
48+ . run ( function ( $rootScope ) {
6049 var Fibers = Npm . require ( 'fibers' ) ;
6150 var origRun = Fibers . prototype . run ;
6251
6352 Fibers . prototype . run = function ( ) {
6453 var result = origRun . apply ( this , arguments ) ;
6554 if ( ! $rootScope . $$phase ) {
66- var startTime = new Date ( ) ;
6755 $rootScope . $apply ( ) ;
68- console . log ( 'digest time:' , new Date ( ) - startTime ) ;
6956 }
7057 return result ;
7158 } ;
0 commit comments