Hi Morgan,
Thanks for your reply. I did try out your suggestion, it seemed to stub the jQuery dialog functionality but my requirement is a little different, i.e. I wanted to stub out the call to $().dialog("open") to prevent the dailog form getting launched.
I did try this,
stub = sinon.stub( $.fn, 'dialog' );stub.withArgs("open" ).returns("");but this dint seem to work. Do you have any suggestions/recommendations to just stub out $().dialog("open") while still rendering a dialog an in-memory?
Thanks
but this is overriding the entire dialog functionality. I want my dialog to get rendered but, i dont want to lauch