{"id":3524,"date":"2015-02-25T13:18:19","date_gmt":"2015-02-25T19:18:19","guid":{"rendered":"http:\/\/bililite.com\/blog\/?p=3524"},"modified":"2015-04-21T10:20:50","modified_gmt":"2015-04-21T16:20:50","slug":"new-jquery-ui-subclass-js","status":"publish","type":"post","link":"https:\/\/bililite.com\/blog\/2015\/02\/25\/new-jquery-ui-subclass-js\/","title":{"rendered":"New <code>jquery.ui.subclass.js<\/code>"},"content":{"rendered":"<p>I finally updated my jQuery widget <a href=\"https:\/\/github.com\/dwachss\/flexcal\/blob\/master\/jquery.ui.subclass.js\">subclassing code<\/a> to use the newest version of jQuery UI, which incorporated a lot of the original ideas <a href=\"\/blog\/extending-jquery-ui-widgets\/\">I outlined back in 2010<\/a>. The new documentation is now on my <a href=\"http:\/\/github.bililite.com\/extending-widgets.html\">github pages<\/a>, and I've updated the <a href=\"http:\/\/bililite.com\/blog\/2009\/04\/03\/new-jquery-widget-flexcal\/\" title=\"New jQuery Widget: flexcal\">flexcal<\/a> posts to reflect it.<\/p>\n<p>It is a breaking change; instead of <code class=\"language-javascript\" >$.namespace.widgetname.subclass('namespace.newwidgetname', {methods...})<\/code> you use the real jQuery UI way: <code class=\"language-javascript\" >$.widget('namespace.newwidgetname', $.namespace.widgetname, {methods...})<\/code>.<\/p>\n<p>I've also changed all my flexcal-related widgets to the <code>bililite<\/code> namespace, per jQuery UI guidelines. It's now <code class=\"language-javascript\" >$.bililite.flexcal<\/code> instead of <code class=\"language-javascript\" >$.ui.flexcal<\/code>, and so on for all the fields in that (like <code class=\"language-javascript\" >$.bililite.flexcal.tol10n<\/code>).<\/p>\n<p>Hope not too many people are inconvenienced.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I finally updated my jQuery widget subclassing code to use the newest version of jQuery UI, which incorporated a lot of the original ideas I outlined back in 2010. The new documentation is now on my github pages, and I've updated the flexcal posts to reflect it. It is a breaking change; instead of $.namespace.widgetname.subclass('namespace.newwidgetname', [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,5],"tags":[],"_links":{"self":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/3524"}],"collection":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/comments?post=3524"}],"version-history":[{"count":3,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/3524\/revisions"}],"predecessor-version":[{"id":3549,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/3524\/revisions\/3549"}],"wp:attachment":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/media?parent=3524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/categories?post=3524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/tags?post=3524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}