diff --git a/src/standard/configure.html b/src/standard/configure.html index 7a6210a96c..39e7158f71 100644 --- a/src/standard/configure.html +++ b/src/standard/configure.html @@ -45,7 +45,13 @@ // storage for configuration _setupConfigure: function(initialConfig) { - this._config = initialConfig || {}; + this._config = {}; + // don't accept undefined values in intialConfig + for (var i in initialConfig) { + if (initialConfig[i] !== undefined) { + this._config[i] = initialConfig[i]; + } + } this._handlers = []; }, @@ -92,6 +98,7 @@ _configureProperties: function(properties, config) { for (var i in properties) { var c = properties[i]; + // don't accept undefined values if (c.value !== undefined) { var value = c.value; if (typeof value == 'function') { diff --git a/test/smoke/bind-smoke2.html b/test/smoke/bind-smoke2.html new file mode 100644 index 0000000000..ff83d5ccbb --- /dev/null +++ b/test/smoke/bind-smoke2.html @@ -0,0 +1,68 @@ + + + + +
+ +