Changeset 1365

Show
Ignore:
Timestamp:
04/19/08 22:57:13 (3 months ago)
Author:
cederberg@gmail.com
Message:

Fixed issue with Opera 9 not inserting spaces between arguments in Function.toString(). Was detected by a test for MochiKit.Base.repr.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mochikit/trunk/MochiKit/Base.js

    r1323 r1365  
    779779        if (typeof(o) == "function") { 
    780780            ostring = ostring.replace(/^\s+/, "").replace(/\s+/g, " "); 
     781            ostring = ostring.replace(/,(\S)/, ", $1"); 
    781782            var idx = ostring.indexOf("{"); 
    782783            if (idx != -1) { 
  • mochikit/trunk/packed/MochiKit/MochiKit.js

    r1363 r1365  
    619619if(typeof (o)=="function"){ 
    620620_db=_db.replace(/^\s+/,"").replace(/\s+/g," "); 
     621_db=_db.replace(/,(\S)/,", $1"); 
    621622var idx=_db.indexOf("{"); 
    622623if(idx!=-1){