@@ -265,7 +265,7 @@ _setOptions: function( options ) {
265
265
266
266
$.each( options, function( key, value ) {
267
267
that._setOption( key, value );
268
- if ( key == "height" || key == "width" ) {
268
+ if ( key === "height" || key = == "width" ) {
269
269
resize = true;
270
270
}
271
271
});
@@ -294,10 +294,10 @@ _setOptions: function( options ) {
294
294
<desc >Update a widget's element when its <code >height</code > or <code >width</code > option changes.</desc >
295
295
<code ><![CDATA[
296
296
_setOption: function( key, value ) {
297
- if ( key == "width" ) {
297
+ if ( key === "width" ) {
298
298
this.element.width( value );
299
299
}
300
- if ( key == "height" ) {
300
+ if ( key === "height" ) {
301
301
this.element.height( value );
302
302
}
303
303
this._super( key, value );
@@ -359,6 +359,14 @@ this._off( this.element, "click" );
359
359
<desc >
360
360
Invokes the method of the same name from the parent widget, with any specified arguments. Essentially <code >.call()</code >.
361
361
</desc >
362
+ <example >
363
+ <desc >Call the parent widget's <code >_setOption()</code > method.</desc >
364
+ <code ><![CDATA[
365
+ _setOption: function( key, value ) {
366
+ this._super( key, value );
367
+ }
368
+ ]]> </code >
369
+ </example >
362
370
</method >
363
371
<method name =" _superApply" >
364
372
<desc >
@@ -367,6 +375,14 @@ this._off( this.element, "click" );
367
375
<argument name =" arguments" type =" Array" >
368
376
<desc >Array of arguments to pass to the parent method.</desc >
369
377
</argument >
378
+ <example >
379
+ <desc >Call the parent widget's <code >_setOption()</code > method.</desc >
380
+ <code ><![CDATA[
381
+ _setOption: function( key, value ) {
382
+ this._superApply( arguments );
383
+ }
384
+ ]]> </code >
385
+ </example >
370
386
</method >
371
387
<method name =" _delay" return =" Number" >
372
388
<desc >
@@ -414,7 +430,7 @@ this._hoverable( this.element.find( "div" ) );
414
430
<example >
415
431
<desc >Apply focusable styling to a set of elements within the widget.</desc >
416
432
<code ><![CDATA[
417
- this._focusable( this.element.find( "my-items" ) );
433
+ this._focusable( this.element.find( ". my-items" ) );
418
434
]]> </code >
419
435
</example >
420
436
</method >
0 commit comments