-
Notifications
You must be signed in to change notification settings - Fork 329
Open
Description
#First i am calling getMentions
$('textarea.mention').mentionsInput('getMentions', function(data) {
var temp = JSON.stringify(data);
console.log(temp)
});
#Then it's coming here!
getMentions : function (callback) {
debugger;
if (!_.isFunction(callback)) {
return;
}
callback.call(this, mentionsCollection);
}
#Then here!
return this.each(function () {
var instance =
if (_.isFunction(instance[method])) {
return instance[method].apply(this, Array.prototype.slice.call(outerArguments, 1));
} else if (typeof method === 'object' || !method) {
return instance.init.call(this, this);
} else {
$.error('Method ' + method + ' does not exist');
}
});
It should take only current textarea object but don't understand from where it's fetching these many textareas.
it should return just first obj mentionsCollection but it returning so many empty arrays after that.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels


