Skip to content

Commit

Permalink
Fixes PaulKinlan#147 - remove the click handler for list.html
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKinlan committed Jan 4, 2012
1 parent 05ecf19 commit 9ad9bc9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions server/webintents/static/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var IntentController = new (function() {
var intentStr = window.btoa(unescape(encodeURIComponent(JSON.stringify(intent)))).replace(/=/g, "_");

var href = (e.srcElement || e.target).href;
if(!!intent._callback == false) {
if(!!intent && !!intent._callback == false) {
// There is no callback so remove any reference to the intent.
localStorage.removeItem(intent._id);
}
Expand Down Expand Up @@ -92,7 +92,10 @@ var IntentController = new (function() {
actionLink.href = action.url;
actionLink.target = "_blank";
setText(actionLink, action.title);
attachEventListener(actionLink, "click", launch(intent, action.disposition), false);

if(!!intent)
attachEventListener(actionLink, "click", launch(intent, action.disposition), false);

setText(domain, action.domain || "Unknown domain");

actionElement.style.clear = "both";
Expand Down

0 comments on commit 9ad9bc9

Please sign in to comment.