Last active
August 29, 2015 14:22
-
-
Save mszoernyi/314f4e16a4ed1a38c71f to your computer and use it in GitHub Desktop.
Revisions
-
mszoernyi revised this gist
Jun 9, 2015 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,6 +4,6 @@ _findCountries: -> countries = (Ember.Object.create({ id: code, name: name }) for code, name of isoCodes.isoCountries) promise = Ember.RSVP.Promise.resolve(countries) promiseArray = Ember.ArrayProxy.extend(Ember.PromiseProxyMixin) promiseArray.create({ promise: promise }) -
mszoernyi created this gist
Jun 9, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ _findCountries: -> isoCodes = Ember.Object.createWithMixins(IsoCodes) countries = (Ember.Object.create({ id: code, name: name }) for code, name of isoCodes.isoCountries) promise = Ember.RSVP.Promise.resolve(countries) PromiseArray = Ember.ArrayProxy.extend(Ember.PromiseProxyMixin) PromiseArray.create({ promise: promise })