How can I get JSLint to stop complaining about Ember.js “.property()”s?-Collection of common programming errors
My solution was to convert it to:
isBlah: Em.property(function() {
"use strict";
...
}, "foo", "bar").cacheable()
Where I first add the ‘property’ method to Ember (before starting my app):
Em.property = function (func) {
var params = Array.prototype.slice.call(arguments, 1);
return Function.prototype.property.apply(func, params);
};