November 28, 201213 yr jQuery UI developer Kris Borchers, Senior Software Engineer in Red Hat, presented about the improvement of widget factory. For instance, inheritance, Lifecycle – Creation, Lifecycle – Redefine, Lifecycle – Destroy, etc. are introduced during the session. Inheritance _super() / _superApply() Old: $.Widget.prototoype._setOption.call( this, "foo", "bar" ); New: (inside of_setOption) this._super( "foo", "bar" ); Notes: Widgets support inheritance and have at least one parent There was no easy way to call parent methods _supperApply is same just array of args is passed like apply If you want to see the entire information about the topic, go to jQuery Conference section at DaVinci Forum site. In order to download the material, you need to register for “DaVinci Forum”.
Create an account or sign in to comment