forked from igokul95/react-tokeninput
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove lib/ from gitignore to workaround yarn bug
- Loading branch information
1 parent
31085d3
commit db450a0
Showing
7 changed files
with
691 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,5 @@ TODO | |
*.log | ||
node_modules | ||
tmp | ||
lib | ||
example/bundle.js | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use strict'; | ||
|
||
module.exports = addClass; | ||
|
||
function addClass(existing, added) { | ||
if (!existing) return added; | ||
if (existing.indexOf(added) > -1) return existing; | ||
return existing + ' ' + added; | ||
} |
Oops, something went wrong.