javascript - Return not in function -


Firebug is reporting a "no return function" error with no location (well, nothing 1 line) is. How can I track the source of this error?

not returning to function

I have an FF Running firebug 1.05 at 2.0.0.20.

I have found a solution that works (for this configuration):

  var link = document.createElement ('a' ); Link.href = '/'; If (child.Summary.more) {link.onclick = capture (function (id) {follow (id);}, childSummary.id); } And {link.onclick = capture (function (id) {show (id);}, childsmith.ed); } Link.appendChild (document.createTextNode (name)); Div.appendChild (link); [...] Function Capture (FN, Val) {Return Function () {FN (Val); return false; }; }  

This code was in a loop in which the id was changing, the capture function is required.

Previously the href was 'javascript: return 0' and the capture function was not returning directly to the false directly using the result of FN, and when it was returning to the truth, there was a way. Href is being evaluated due to an error.

All links already visited because of the defining of '#' or '' href were not defined by the AR due to no link highlighting. It seemed simple.

I think "javascript: return ..." is saying. I believe that you are trying to return a value of an anchor to href attribute, as shown below:

  & lt; A href = "javascript: return false" gt; Test & lt; / A & gt;  

Firebug is not telling you the location, because it is not in any JavaScript, but in the one-liner in the DOM.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -