We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#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 = $.data(this, 'mentionsInput') || $.data(this, 'mentionsInput', new MentionsInput(settings));
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.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
#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 () {$.data(this, 'mentionsInput') || $ .data(this, 'mentionsInput', new MentionsInput(settings));
var instance =
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.
The text was updated successfully, but these errors were encountered: