move comment dependency from link.js

This commit is contained in:
spez
2008-11-07 11:37:48 -08:00
parent 61fdbfcf97
commit a4483a2f56
2 changed files with 3 additions and 3 deletions

View File

@@ -101,6 +101,9 @@ Comment.comment = function(r) {
vl[id] = r.vl;
};
// Commenting on a link is handled by the Comment API so defer to it
Link.comment = Comment.comment;
Comment.morechildren = function(r) {
var c = new Thing(r.id);
if(c.row) c.del();

View File

@@ -455,9 +455,6 @@ Link.prototype.share = function() {
share.attach(this.$("child"));
};
// Commenting on a link is handled by the Comment API so defer to it
Link.comment = Comment.comment;
function linkstatus(form) {
var title = field(form.title);
if(title) {