Last active
December 19, 2017 16:12
-
-
Save rogatty/ce22f533c25c41f3f24d633deb3f2e12 to your computer and use it in GitHub Desktop.
Ember.A().slice() without Array prototype extended
This file contains 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({ | |
afterSlice: Ember.computed(function () { | |
return typeof(Ember.A().slice().setEach); | |
}), | |
afterFilterBy: Ember.computed(function () { | |
return typeof(Ember.A().filterBy(() => true).setEach); | |
}), | |
}); |
This file contains 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.12.1", | |
"EmberENV": { | |
"EXTEND_PROTOTYPES": { | |
"Array": false | |
}, | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.17.0", | |
"ember-template-compiler": "2.17.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment