jQuery: The Write Less, Do More JavaScript Library

Ticket #2159: defaultproperty.patch

File defaultproperty.patch, 0.6 kB (added by scott.gonzalez, 7 months ago)
  • ajax.js

     
    153153            script: "text/javascript, application/javascript", 
    154154            json: "application/json, text/javascript", 
    155155            text: "text/plain", 
    156             default: "*/*" 
     156            'default': "*/*" 
    157157        } 
    158158    }, 
    159159     
     
    287287            // Set the Accepts header for the server, depending on the dataType 
    288288            xml.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ? 
    289289                s.accepts[ s.dataType ] + ", */*" : 
    290                 s.accepts.default ); 
     290                s.accepts['default'] ); 
    291291        } catch(e){} 
    292292 
    293293        // Allow custom headers/mimetypes