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"),
|
good: Ember.computed.not("bad"),
|
||||||
|
|
||||||
@observes("shownAt")
|
@observes("shownAt")
|
||||||
bounce(shownAt) {
|
bounce() {
|
||||||
if (shownAt) {
|
if (this.get("shownAt")) {
|
||||||
var $elem = this.$();
|
var $elem = this.$();
|
||||||
if (!this.animateAttribute) {
|
if (!this.animateAttribute) {
|
||||||
this.animateAttribute = $elem.css('left') === 'auto' ? 'right' : 'left';
|
this.animateAttribute = $elem.css('left') === 'auto' ? 'right' : 'left';
|
||||||
|
|
|
@ -18,8 +18,8 @@ export default Ember.Component.extend({
|
||||||
showDisableAnon(allowAnon, isAnon) { return allowAnon && isAnon; },
|
showDisableAnon(allowAnon, isAnon) { return allowAnon && isAnon; },
|
||||||
|
|
||||||
@observes('visible')
|
@observes('visible')
|
||||||
_loadNotifications(visible) {
|
_loadNotifications() {
|
||||||
if (visible) {
|
if (this.get("visible")) {
|
||||||
this.refreshNotifications();
|
this.refreshNotifications();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue