Skip to content

Instantly share code, notes, and snippets.

@kellyselden
Last active September 11, 2016 01:45
Show Gist options
  • Save kellyselden/eb15180109e6467f27f88743245cf788 to your computer and use it in GitHub Desktop.
Save kellyselden/eb15180109e6467f27f88743245cf788 to your computer and use it in GitHub Desktop.
prototype extension bug
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export function array(params/*, hash*/) {
return params;
}
export default Ember.Helper.helper(array);
<h1>Welcome to {{appName}}</h1>
{{#each (array "first-item" "second-item") as |item|}}
<div>{{item}}</div>
{{/each}}
{
"version": "0.10.4",
"EmberENV": {
"FEATURES": {},
"EXTEND_PROTOTYPES": false
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "beta",
"ember-data": "2.7.0",
"ember-template-compiler": "beta"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment