Skip to content

Commit

Permalink
Merge pull request #261 from canufeel/paper-item
Browse files Browse the repository at this point in the history
Fix for #237
  • Loading branch information
miguelcobain committed Jan 15, 2016
2 parents e55ab20 + 99b7fc5 commit 95c6cc3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Ember Paper Changelog

### 0.2.11
- [#261](https://github.com/miguelcobain/ember-paper/pull/261) Fixed [#237](https://github.com/miguelcobain/ember-paper/issues/237) - didInsertElement deprecation warning for components using proxiable-mixin.
- [#260](https://github.com/miguelcobain/ember-paper/pull/260) Set jquery version to 1.11.3
- [#255](https://github.com/miguelcobain/ember-paper/pull/255) Add class to backdrops
- [#253](https://github.com/miguelcobain/ember-paper/pull/253) Add `closeOnClick` to paper-sidenav

Expand Down
10 changes: 7 additions & 3 deletions addon/mixins/proxiable-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ import Ember from 'ember';
import ProxyMixin from './proxy-mixin';

export default Ember.Mixin.create({
didInsertElement() {
init(){
this._super(...arguments);

var proxy = this.nearestOfType(ProxyMixin);
Ember.run(()=>{
Ember.run.scheduleOnce('afterRender', this, 'registerProxy');
});
},
registerProxy(){
let proxy = this.nearestOfType(ProxyMixin);
if (proxy) {
proxy.register(this);
}
Expand Down

0 comments on commit 95c6cc3

Please sign in to comment.