Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Commit

Permalink
Avoid state/_state deprecation warnings on Ember 1.7.0+
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemelia committed Oct 9, 2014
1 parent ca0db40 commit 64b35e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/components/facebook-facepile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default Ember.Component.extend({
createFacebookFacepile: function() {
var self = this;
this.socialApiClient.load().then(function(FB) {
if (self.state !== 'inDOM') { return; }
if (self._state !== 'inDOM') { return; }
var attrs = [];
var url = self.get('url');
if (url) {
Expand Down
2 changes: 1 addition & 1 deletion app/components/facebook-like.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default Ember.Component.extend({
createFacebookLikeButton: function() {
var self = this;
this.socialApiClient.load().then(function(FB) {
if (self.state !== 'inDOM') { return; }
if (self._state !== 'inDOM') { return; }
var attrs = [];
var url = self.get('url');
if (url) {
Expand Down
2 changes: 1 addition & 1 deletion app/components/twitter-share.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default Ember.Component.extend({
loadTwitterClient: function() {
var self = this;
this.socialApiClient.load().then(function(twttr) {
if (self.state !== 'inDOM') { return; }
if (self._state !== 'inDOM') { return; }
self.twttr = twttr;
self.trigger('twitterLoaded');
});
Expand Down

0 comments on commit 64b35e9

Please sign in to comment.