Last active
February 15, 2017 14:49
-
-
Save tomasznapieralski/e90d92aab7f97b8513d0c2e667adae90 to your computer and use it in GitHub Desktop.
jQuery bug
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({ | |
clicked: 0, | |
clickedVariant2: 0, | |
didInsertElement() { | |
this.$('#jquerybutton').on('click', () => { | |
this.$('.clickme').click(); | |
}); | |
this.$('#jquerybuttonVariant2').on('click', () => { | |
this.$('.clickmeVariant2').click(); | |
}); | |
}, | |
actions: { | |
handleClick() { | |
this.set('clicked', this.get('clicked') + 1); | |
}, | |
handleClickVariant2() { | |
this.set('clickedVariant2', this.get('clickedVariant2') + 1); | |
return false; | |
} | |
} | |
}); |
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.11.0", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.10.2", | |
"ember-data": "2.11.0", | |
"ember-template-compiler": "2.10.2", | |
"ember-testing": "2.10.2" | |
}, | |
"addons": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment