mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
Ember.empty
has been renamed to Ember.isEmpty
This commit is contained in:
@ -4,7 +4,7 @@ export default Ember.ObjectController.extend({
|
||||
|
||||
saveDisabled: function() {
|
||||
if (this.get('saving')) { return true; }
|
||||
if ((!this.get('allow_blank')) && Ember.empty(this.get('value'))) { return true; }
|
||||
if ((!this.get('allow_blank')) && Ember.isEmpty(this.get('value'))) { return true; }
|
||||
return false;
|
||||
}.property('saving', 'value'),
|
||||
|
||||
|
Reference in New Issue
Block a user