-
-
Save workmanw/8bb7a675bb43803be3d0671c4f634987 to your computer and use it in GitHub Desktop.
Ember 2.10.0 - Bug with inline styles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
attributeBindings: 'style'.w(), | |
init() { | |
this._super(...arguments); | |
Ember.run.later(this, () => { | |
this.set('isVisible', true); | |
}, 5000); | |
}, | |
style: Ember.computed(function() { | |
return `color: red`; | |
}) | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
isVisible: false, | |
attributeBindings: 'style'.w(), | |
init() { | |
this._super(...arguments); | |
Ember.run.later(this, () => { | |
this.set('isVisible', true); | |
}, 5000); | |
}, | |
style: Ember.computed(function() { | |
return `color: red`; | |
}) | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
attributeBindings: 'style'.w(), | |
init() { | |
this._super(...arguments); | |
Ember.run.later(this, () => { | |
this.set('isVisible', false); | |
}, 5000); | |
Ember.run.later(this, () => { | |
this.set('isVisible', true); | |
}, 10000); | |
}, | |
style: Ember.computed(function() { | |
return `color: red`; | |
}) | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.10.6", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "release", | |
"ember-data": "2.9.0", | |
"ember-template-compiler": "release", | |
"ember-testing": "release" | |
}, | |
"addons": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment