mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
move comment dependency from link.js
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user