ember-script
ember-script copied to clipboard
Ember-infused CoffeeScript
The following is valid coffeescript and should compile in emberscript too: Todos.Todo.FIXTURES = [ id: 1 title: "Learn Ember.js" isCompleted: true , id: 2 title: "Go home" isCompleted: false ,...
E.g.: ``` @on init reset: -> ```
ember-script --help gives one example that worked as expected _ember-script --js --no-optimise output.js_ Since the help dialogue is tacked onto CoffeeScripts it all blobs together making everything more confusing. For...
This throws an unexpected token error at the 2nd and 3rd hyphens (`-`): ``` coffeescript class App.FooController extends Em.ObjectController needs: ['bar-baz'] +computed controllers.bar-baz.someOtherAttr # error here someAttr: -> @controllers.bar-baz.someOtherAttr #...
Operator ~> incorrectly processes method definitions with filterProperty. ``` coffee class Controller countMarked: ~> @filterProperty('isMarked', true).length ``` turns into ``` js Controller = Ember.Object.extend({ countMarked: Ember.computed(function () { return get$(this.filterProperty('isMarked',...
Object function toString() { [native code] } has no method 'set'
``` coffeescript myProp: ~> @get('someOtherProp') ``` Results in ``` javascript myProp: Ember.computed(function() { return this.get('someOtherProp'); }).property(''); ```
In 'normal' ember, when when the first property of a concatenated set of properties returns an 'undefined', the total get returns an 'undefined'. ``` coffeescript @get('first.second') ``` When I use...