-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Closed
Description
I found this bug while working with jQuery plugin named mentionsinput (http://podio.github.com/jquery-mentions-input/).
Basically the lastIndexOf call is not picking up the correct index ( it's always giving back -1 ).
The line is as below, found under checkTriggerChar() :
var triggerCharIndex = _.lastIndexOf(inputBuffer, triggerChar);
I had to switch to the native Javascript lastIndexOf() to get around it at this point.
Seems like this is happening since the new 1.4.