diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-02-02 15:13:45 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-02-02 18:01:15 +0100 |
commit | 03f4b49eccc381deda4ad17fe7d74817b14b165a (patch) | |
tree | f597d45bbc26fc4eb98269f72762c80e01dbc463 /apps/comments/js | |
parent | 9028457ea2a150a586e63421382379f14cebd648 (diff) | |
download | nextcloud-server-03f4b49eccc381deda4ad17fe7d74817b14b165a.tar.gz nextcloud-server-03f4b49eccc381deda4ad17fe7d74817b14b165a.zip |
Added JS unit tests for comments
Diffstat (limited to 'apps/comments/js')
-rw-r--r-- | apps/comments/js/commentcollection.js | 10 | ||||
-rw-r--r-- | apps/comments/js/commentstabview.js | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/apps/comments/js/commentcollection.js b/apps/comments/js/commentcollection.js index 055752f327c..f39eeb020fa 100644 --- a/apps/comments/js/commentcollection.js +++ b/apps/comments/js/commentcollection.js @@ -13,14 +13,14 @@ var NS_OWNCLOUD = 'http://owncloud.org/ns'; /** - * @class OCA.Comments.CommentsCollection + * @class OCA.Comments.CommentCollection * @classdesc * * Collection of comments assigned to a file * */ - var CommentsCollection = OC.Backbone.Collection.extend( - /** @lends OCA.Comments.CommentsCollection.prototype */ { + var CommentCollection = OC.Backbone.Collection.extend( + /** @lends OCA.Comments.CommentCollection.prototype */ { sync: OC.Backbone.davSync, @@ -82,7 +82,7 @@ options = _.extend({ remove: false, data: body, - davProperties: CommentsCollection.prototype.model.prototype.davProperties, + davProperties: CommentCollection.prototype.model.prototype.davProperties, success: function(resp) { if (resp.length <= self._limit) { // no new entries, end reached @@ -105,6 +105,6 @@ } }); - OCA.Comments.CommentsCollection = CommentsCollection; + OCA.Comments.CommentCollection = CommentCollection; })(OC, OCA); diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js index fd6b7b07dcb..463ac2d76ef 100644 --- a/apps/comments/js/commentstabview.js +++ b/apps/comments/js/commentstabview.js @@ -57,7 +57,7 @@ initialize: function() { OCA.Files.DetailTabView.prototype.initialize.apply(this, arguments); - this.collection = new OCA.Comments.CommentsCollection(); + this.collection = new OCA.Comments.CommentCollection(); this.collection.on('request', this._onRequest, this); this.collection.on('sync', this._onEndRequest, this); this.collection.on('add', this._onAddModel, this); |