Permalink
Browse files

Fix setRequestHeader in XHR object

  • Loading branch information...
assaf committed Dec 20, 2010
1 parent 16d3f2b commit 1be14704cd797a42ab40c6ea5ae6627e5764bbf9
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/zombie/xhr.coffee
View
@@ -25,7 +25,7 @@ XMLHttpRequest = (browser, window)->
@__defineGetter__ "statusText", ->
# These methods not applicable yet.
@abort = -> # do nothing
- @setRequestHandler = @send = -> throw new core.DOMException(core.INVALID_STATE_ERR, "Invalid state")
+ @setRequestHeader = @send = -> throw new core.DOMException(core.INVALID_STATE_ERR, "Invalid state")
@getResponseHeader = @getAllResponseHeader = ->
# Open method.
@open = (method, url, async, user, password)->
@@ -47,7 +47,7 @@ XMLHttpRequest = (browser, window)->
# Allow setting headers in this state.
headers = {}
- @setRequestHandler = (header, value)-> headers[header.toString().toLowerCase()] = value.toString()
+ @setRequestHeader = (header, value)-> headers[header.toString().toLowerCase()] = value.toString()
# Allow calling send method.
@send = (data)->
# Aborting request in progress.

0 comments on commit 1be1470

Please sign in to comment.