You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Invokes the method of the same name from the parent widget, with any specified arguments. Essentially <code>.call()</code>.
476
476
</desc>
477
477
<example>
478
-
<desc>Handle the width option and call the parent widget's <code>_setOption()</code> method to handle all other options.</desc>
478
+
<desc>Handle <code>title</code> option updates and call the parent widget's <code>_setOption()</code> to update the internal storage of the option.</desc>
479
479
<code><![CDATA[
480
480
_setOption: function( key, value ) {
481
-
if ( key === "width" ) {
482
-
this.resize();
483
-
} else {
484
-
this._super( key, value );
481
+
if ( key === "title" ) {
482
+
this.element.find( "h3" ).text( value );
485
483
}
484
+
this._super( key, value );
486
485
}
487
486
]]></code>
488
487
</example>
@@ -495,14 +494,13 @@ _setOption: function( key, value ) {
495
494
<desc>Array of arguments to pass to the parent method.</desc>
496
495
</argument>
497
496
<example>
498
-
<desc>Handle the width option and call the parent widget's <code>_setOption()</code> method to handle all other options.</desc>
497
+
<desc>Handle <code>title</code> option updates and call the parent widget's <code>_setOption()</code> to update the internal storage of the option.</desc>
0 commit comments