Skip to content

Commit

Permalink
Fix duplicated define in JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
netputer committed Nov 5, 2014
1 parent 5f10f81 commit 269c5e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WebViewJavascriptBridge/WebViewJavascriptBridge.js.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@
setTimeout(function _timeoutDispatchMessageFromObjC() {
var message = JSON.parse(messageJSON)
var messageHandler

var responseCallback

if (message.responseId) {
var responseCallback = responseCallbacks[message.responseId]
responseCallback = responseCallbacks[message.responseId]
if (!responseCallback) { return; }
responseCallback(message.responseData)
delete responseCallbacks[message.responseId]
} else {
var responseCallback
if (message.callbackId) {
var callbackResponseId = message.callbackId
responseCallback = function(responseData) {
Expand Down

0 comments on commit 269c5e2

Please sign in to comment.