Skip to content

Instantly share code, notes, and snippets.

@jede
Last active January 9, 2017 16:07
Show Gist options
  • Save jede/2f88b281face9784e29d0baf331bbe9a to your computer and use it in GitHub Desktop.
Save jede/2f88b281face9784e29d0baf331bbe9a to your computer and use it in GitHub Desktop.
observers[index] FF bug
import Ember from 'ember';
export default Ember.Component.extend({
watch: null,
updatedText: function(){
console.log('we dont get here in firefox')
}.observes('watch')
});
import Ember from 'ember';
export default Ember.Controller.extend({
});
<h1>Tick the box and check the console in firefox</h1>
<br>
<br>
{{input checked=checked type="checkbox"}}
{{my-component watch=checked}}
<br>
<br>
{
"version": "0.10.7",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "canary",
"ember-data": "2.10.0",
"ember-template-compiler": "canary",
"ember-testing": "canary"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment