summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-08-10 21:46:46 +0200
committerVincent Petry <pvince81@owncloud.com>2015-09-16 07:23:25 +0200
commitea6e380efe68e7249917d6470ecdffb25edbcc47 (patch)
tree890e7578d64967bbf9d7d67b5bdc69f0c123280b
parente7b5921206a6c602aa22614907b79f14b8ad39c9 (diff)
downloadnextcloud-server-ea6e380efe68e7249917d6470ecdffb25edbcc47.tar.gz
nextcloud-server-ea6e380efe68e7249917d6470ecdffb25edbcc47.zip
remove possibly unreliable code and fix JSdoc
-rw-r--r--core/js/sharedialogview.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js
index e085e85dd41..38b98a218aa 100644
--- a/core/js/sharedialogview.js
+++ b/core/js/sharedialogview.js
@@ -76,12 +76,6 @@
/** @type {string} **/
tagName: 'div',
- initialize: function() {
- if(!this.model instanceof OC.Share.ShareItemModel) {
- console.warn('model is not an instance of OC.Share.ShareItemModel');
- }
- },
-
render: function() {
var baseTemplate = this._getTemplate('base', TEMPLATE_BASE);
@@ -178,6 +172,13 @@
return sharePlaceholder;
},
+ /**
+ *
+ * @param {string} key - an identifier for the template
+ * @param {string} template - the HTML to be compiled by Handlebars
+ * @returns {Function} from Handlebars
+ * @private
+ */
_getTemplate: function (key, template) {
if (!this._templates[key]) {
this._templates[key] = Handlebars.compile(template);
@@ -188,7 +189,7 @@
/**
* returns the info template for remote sharing
*
- * @returns {Handlebars}
+ * @returns {Function}
* @private
*/
_getRemoteShareInfoTemplate: function() {
@@ -198,7 +199,7 @@
/**
* returns the info template for link sharing
*
- * @returns {Handlebars}
+ * @returns {Function}
* @private
*/
_getLinkShareTemplate: function() {