Skip to content

Commit

Permalink
Merge pull request marcuswestin#107 from netputer/js-fix
Browse files Browse the repository at this point in the history
Fix duplicated define in JavaScript
  • Loading branch information
marcuswestin committed Nov 5, 2014
2 parents 5f10f81 + 269c5e2 commit 52b9134
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 52b9134

Please sign in to comment.