-1

I want to remove Jquery-ui for a moment.

<script type="text/javascript" src="jquery-ui.js"></script>

But by doing that, i have a problem with $(whatever).tabs(); $(whatever).button(); etc...

When the browser meet the call, it just crash.

Is there a way to just ask him to continue normally ?

I don't want to add // manually on every lines.

bob dylan
  • 989
  • 2
  • 10
  • 26
  • 1
    `Javascript want me to manually remove all function calls` what does that mean? – gurvinder372 Jan 31 '16 at 09:18
  • Can you provide some code? Perhaps you're making a variable null/empty and thats causing problems with something expecting that value to be there. We can't help with out some more information – visc Jan 31 '16 at 09:18
  • 1
    Sounds like you want a lazy hack for an error. Always best to fix the problem. Post some code and the error message, might be easier to fix than you think. – Tigger Jan 31 '16 at 09:18
  • 1
    Possible duplicate of [How do I skip or ignore errors in javascript / jquery?](http://stackoverflow.com/questions/16096581/how-do-i-skip-or-ignore-errors-in-javascript-jquery) – Paradoxetion Jan 31 '16 at 09:20
  • I don't want to fix anything, i want to remove JQUERY UI for testing purposes, i don't want to comment all lines with .buttons, .tabs.... I can spend hours going through a crazy amount of lines (and adding //) but that doesn't seem very clever. – bob dylan Jan 31 '16 at 09:21

1 Answers1

0

You could wrap part of your code, which works with this function into try {} catch {}, also you could

window.onerror = function(){
   return true;
}
Paradoxetion
  • 706
  • 2
  • 11
  • 30