FIX: '@observes' doesn't work that way
This commit is contained in:
parent
202e30097f
commit
113cb4d3ad
|
@ -17,8 +17,8 @@ export default Ember.Component.extend(StringBuffer, {
|
|||
good: Ember.computed.not("bad"),
|
||||
|
||||
@observes("shownAt")
|
||||
bounce(shownAt) {
|
||||
if (shownAt) {
|
||||
bounce() {
|
||||
if (this.get("shownAt")) {
|
||||
var $elem = this.$();
|
||||
if (!this.animateAttribute) {
|
||||
this.animateAttribute = $elem.css('left') === 'auto' ? 'right' : 'left';
|
||||
|
|
|
@ -18,8 +18,8 @@ export default Ember.Component.extend({
|
|||
showDisableAnon(allowAnon, isAnon) { return allowAnon && isAnon; },
|
||||
|
||||
@observes('visible')
|
||||
_loadNotifications(visible) {
|
||||
if (visible) {
|
||||
_loadNotifications() {
|
||||
if (this.get("visible")) {
|
||||
this.refreshNotifications();
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue