Skip to content

Commit

Permalink
properly close module
Browse files Browse the repository at this point in the history
  • Loading branch information
drew committed May 13, 2015
1 parent fcf98ba commit 7e50ab8
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions oma-profile/oma/links.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
define(["core/utils"], function(core) {
return {
run: function(conf, doc, cb, msg) {
$("a").each(function(index, link) {
var link = $(link);
if(!link.attr("href").startsWith("#")) {
link.attr("target", "_blank");
}
});
}
}
run: function (conf, doc, cb, msg) {
msg.pub("start", "oma/links");

$("a").each(function(index, link) {
var link = $(link);
if(!link.attr("href").startsWith("#")) {
link.attr("target", "_blank");
}
});

msg.pub("end", "oma/links");
cb();
}
};
});

0 comments on commit 7e50ab8

Please sign in to comment.