mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
Replaced underscore.js & is.js with lodash.js
This commit is contained in:
parent
df8e843bf5
commit
566807bc14
93 changed files with 17379 additions and 2056 deletions
|
@ -23,7 +23,7 @@ export default Component.extend(Notifier, {
|
|||
// Jira specific.
|
||||
let jira = this.get('jira');
|
||||
|
||||
if (is.empty(jira) || is.not.object(jira)) {
|
||||
if (_.isEmpty(jira) || !_.isObject(jira)) {
|
||||
jira = {
|
||||
url: '',
|
||||
username: '',
|
||||
|
@ -37,7 +37,7 @@ export default Component.extend(Notifier, {
|
|||
// Trello specific.
|
||||
let trello = this.get('trello');
|
||||
|
||||
if (is.not.object(trello)) {
|
||||
if (!_.isObject(trello)) {
|
||||
trello = {
|
||||
appKey: ''
|
||||
};
|
||||
|
@ -52,7 +52,7 @@ export default Component.extend(Notifier, {
|
|||
let orgId = this.get("appMeta.orgId");
|
||||
let url = this.get('jiraCreds.url');
|
||||
|
||||
if (is.endWith(url, '/')) {
|
||||
if (_.endsWith(url, '/')) {
|
||||
this.set('jiraCreds.url', url.substring(0, url.length-1));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue