{"id":6043,"date":"2014-04-12T02:53:51","date_gmt":"2014-04-12T02:53:51","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/12\/how-can-i-get-jslint-to-stop-complaining-about-ember-js-propertys-collection-of-common-programming-errors-2\/"},"modified":"2014-04-12T02:53:51","modified_gmt":"2014-04-12T02:53:51","slug":"how-can-i-get-jslint-to-stop-complaining-about-ember-js-propertys-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/12\/how-can-i-get-jslint-to-stop-complaining-about-ember-js-propertys-collection-of-common-programming-errors-2\/","title":{"rendered":"How can I get JSLint to stop complaining about Ember.js &ldquo;.property()&rdquo;s?-Collection of common programming errors"},"content":{"rendered":"<p>My solution was to convert it to:<\/p>\n<pre><code>isBlah: Em.property(function() {\n    \"use strict\";\n    ...\n}, \"foo\", \"bar\").cacheable()\n<\/code><\/pre>\n<p>Where I first add the &#8216;property&#8217; method to Ember (before starting my app):<\/p>\n<pre><code>Em.property = function (func) {\n    var params = Array.prototype.slice.call(arguments, 1);\n    return Function.prototype.property.apply(func, params);\n}; \n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>My solution was to convert it to: isBlah: Em.property(function() { &#8220;use strict&#8221;; &#8230; }, &#8220;foo&#8221;, &#8220;bar&#8221;).cacheable() Where I first add the &#8216;property&#8217; 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); };<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6043","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6043","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6043"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6043\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6043"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6043"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}