{"id":5657,"date":"2014-04-04T15:37:47","date_gmt":"2014-04-04T15:37:47","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/04\/google-closure-compiler-and-jquery-collection-of-common-programming-errors-2\/"},"modified":"2014-04-04T15:37:47","modified_gmt":"2014-04-04T15:37:47","slug":"google-closure-compiler-and-jquery-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/04\/google-closure-compiler-and-jquery-collection-of-common-programming-errors-2\/","title":{"rendered":"google closure compiler and jquery-Collection of common programming errors"},"content":{"rendered":"<p>I copy-pasted my js code into the google compiler and when I copied it back into my application it didn&#8217;t work. I realized that my code needs jquery so I copied the jquery code and my code into the google compiler, hoping it would easily solve the problem, but it doesn&#8217;t work either.<\/p>\n<p>In chrome, the code bugs on the line <code>$(document).K(function () {<\/code> which is the document ready function. The error is <code>Uncaught TypeError: Object [object Object] has no method 'K'<\/code><\/p>\n<p>What do I need to do to make it (tentatively) work?<\/p>\n<p>Thanks for your suggestions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I copy-pasted my js code into the google compiler and when I copied it back into my application it didn&#8217;t work. I realized that my code needs jquery so I copied the jquery code and my code into the google compiler, hoping it would easily solve the problem, but it doesn&#8217;t work either. In chrome, [&hellip;]<\/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-5657","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5657","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=5657"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5657\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}