{"id":5595,"date":"2014-04-02T08:22:41","date_gmt":"2014-04-02T08:22:41","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/02\/google-closure-compiler-and-jquery-collection-of-common-programming-errors\/"},"modified":"2014-04-02T08:22:41","modified_gmt":"2014-04-02T08:22:41","slug":"google-closure-compiler-and-jquery-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/02\/google-closure-compiler-and-jquery-collection-of-common-programming-errors\/","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-5595","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5595","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=5595"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5595\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}