[Webkit-unassigned] [Bug 26130] debug = console.log; debug('something'); results in TypeError

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 1 22:42:41 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=26130


sam at webkit.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID




------- Comment #1 from sam at webkit.org  2009-06-01 22:42 PDT -------
This is not really a bug, but rather how all JS functions work.  One cannot
assign document.getElementById to a variable and expect it to work, it is a
function of the document element, and expects the 'this' to be as such.  As a
work around, you can use:

var debug = function(s) { console.debug(s); } 


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list