DailyJS

jQuery Roundup: 1.8.3, UI 1.9.2, oolib.js

Alex R. Young

Subscribe

@dailyjs

Facebook

Google+

jquery oo jquery-ui

jQuery Roundup: 1.8.3, UI 1.9.2, oolib.js

Posted by Alex R. Young on .
Featured

jquery oo jquery-ui

jQuery Roundup: 1.8.3, UI 1.9.2, oolib.js

Posted by Alex R. Young on .
Note: You can send your plugins and articles in for review through our contact form or @dailyjs.

jQuery 1.8.3

jQuery 1.8.3 and jQuery Color 2.1.1 are out. There are a few interesting bug fixes in this release that you might want to check out:

jQuery UI 1.9.2

jQuery UI 1.9.2 is out:

This update brings bug fixes for Accordion, Autocomplete, Button, Datepicker, Dialog, Menu, Tabs, Tooltip and Widget Factory.

The 1.9.2 changelog contains a full breakdown of the recent changes.

oolib.js

oolib.js (GitHub: idya / oolib, License: MIT) by Zsolt Szloboda is a JavaScript object-oriented library that is conceptually similar to jQuery UI's Widget Factory. It supports private methods, class inheritance, object initialisation and deinitialisation, super methods, and it's fairly small (min: 1.6K, gz: 0.7K).

It looks like this in practice:

var MyClass = oo.createClass({  
  _create: function(foo) {
    this.myField = foo;
  },

  _myPrivateMethod: function(bar) {
    return this.myField + bar;
  },

  myPublicMethod: function(baz) {
    return this._myPrivateMethod(baz);
  }
});

var MySubClass = oo.createClass(MyClass, {  
  _myPrivateMethod: function(bar) {
    return this.myField + bar + 1;
  }
});