Correct way to fill un-needed callbacks in javascript
<p>Consider this code snippet:</p>

<pre><code>transaction.executeSql(  
'SELECT * FROM pv_master;', [],  
    function(transaction, result) {  
        if(result.rows.length == 0) {  
        jQT.goTo("#register", 'slideup');  
        }  
    }, errorHandler  
);
</code></pre>

<p>This example is a little different to the question title as the square brackets should be filled with some value.</p>

<p>Imagine I didn't want a success callback but did want a failure callback, which comes second in this instance.</p>

<p>What would be the correct way to go about it?</p>
