Example #1
0
    wait: function( first ) {
        print( 'wait' );

        if ( first ) {
          Gitwar.poll( Gitfight.takeTurn );
        } else {
          Gitwar.sync()
          .then( function() {
              return Gitwar.poll( Gitfight.takeTurn );
          });
        }
    },
Example #2
0
 .then( function() {
     return Gitwar.poll( Gitfight.takeTurn );
 });