Adding additional callback to View.prototype.query