mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +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
|
@ -112,7 +112,7 @@ export default Component.extend({
|
|||
invokeExport() {
|
||||
// Cannot export if nothing has been changed
|
||||
// so we skip straight to the save process.
|
||||
if (is.empty(this.get('diagramXML'))) {
|
||||
if (_.isEmpty(this.get('diagramXML'))) {
|
||||
this.set('readyToSave', true);
|
||||
return;
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ export default Component.extend({
|
|||
|
||||
// handle case where no diagram changes were made
|
||||
let dg = this.get('diagram');
|
||||
if (is.empty(dg)) dg = this.get('meta.rawBody');
|
||||
if (_.isEmpty(dg)) dg = this.get('meta.rawBody');
|
||||
|
||||
meta.set('rawBody', dg);
|
||||
page.set('title', this.get('title'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue