Permalink
Browse files

Fix Firefox. Do thins Right.

  • Loading branch information...
1 parent bd30380 commit 09120ee89577ae984470fa6c08e513ba123ed846 @ialexi committed Apr 18, 2010
Showing with 6 additions and 4 deletions.
  1. +5 −3 apps/hedwig/views/article_view.js
  2. +1 −1 frameworks/sproutcore
@@ -59,9 +59,11 @@ Hedwig.ArticleView = SC.View.extend(Hedwig.TouchHelper, {
}.observes("content"),
processContent: function() {
- var d = this.$("a.demo").forEach(function(x) {
- x.outerHTML = Hedwig.articleController.replacementFor(x.getAttribute("href"));
- }, this);
+ var d = this.$("a.demo").each(function() {
+ console.error(this.getAttribute("href"));
+ this.innerHTML = Hedwig.articleController.replacementFor(this.getAttribute("href"));
+ this.setAttribute("href", "#");
+ });
},
touchStart: function(touch) { return this.mouseDown(touch); },

0 comments on commit 09120ee

Please sign in to comment.