} );
test( "._getCreateOptions()", function() {
- expect( 3 );
+ expect( 4 );
$.widget( "ui.testWidget", {
options: {
option1: "valuex",
option3: "value3"
},
_getCreateOptions: function() {
+ var superOptions = this._super();
+
+ deepEqual( superOptions, {}, "Base implementation returns empty object" );
// Support: IE8
// Strict equality fails when comparing this.window in ie8
this._init();
},
- _getCreateOptions: $.noop,
+ _getCreateOptions: function() {
+ return {};
+ },
_getCreateEventData: $.noop,
},
_getCreateOptions: function() {
- return { disabled: this.element.prop( "disabled" ) };
+ var options = this._super();
+
+ options.disabled = this.element.prop( "disabled" );
+
+ return options;
},
_parseOptions: function( options ) {
},
_getCreateOptions: function() {
- var options = {},
- element = this.element;
+ var options = this._super();
+ var element = this.element;
$.each( [ "min", "max", "step" ], function( i, option ) {
var value = element.attr( option );