Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • XWormX, Thanks for your reply, I get it what you are saying but i can not change my source code to test it. document.ready has its own scope and that's why i am getting undefined reference error. Commented Jul 10, 2013 at 19:56
  • It doesnt see what you have inside the ready function, cause everything inside isnt subjected globally. It is a different scope. Try to do what is in my update Commented Jul 10, 2013 at 19:58
  • XWormX, Our Source code is a production source code and we are not allowed to do any modification with our source code. Commented Jul 10, 2013 at 20:05
  • 1
    @makmak Then you can not test that code. You will have to refactor that code out into it's own separate module before you can test it. Commented Jul 11, 2013 at 3:09