mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
REFACTOR: Use a module for Ember.isEmpty
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import { isEmpty } from "@ember/utils";
|
||||
import { schedule } from "@ember/runloop";
|
||||
import Component from "@ember/component";
|
||||
/* global Pikaday:true */
|
||||
@ -358,7 +359,7 @@ export default Component.extend({
|
||||
},
|
||||
|
||||
_setTimeIfValid(time, key) {
|
||||
if (Ember.isEmpty(time)) {
|
||||
if (isEmpty(time)) {
|
||||
this.set(key, null);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user