WebViewAttribute = (function() {
function WebViewAttribute(name, webViewImpl) {
this.name = name;
+ this.value = webViewImpl.webviewNode[name] || '';
this.webViewImpl = webViewImpl;
this.ignoreMutation = false;
this.defineProperty();
/* Retrieves and returns the attribute's value. */
WebViewAttribute.prototype.getValue = function() {
- return this.webViewImpl.webviewNode.getAttribute(this.name) || '';
+ return this.webViewImpl.webviewNode.getAttribute(this.name) || this.value;
};
if (this.webViewImpl.webviewNode.hasAttribute(this.name)) {
return resolveURL(this.webViewImpl.webviewNode.getAttribute(this.name));
} else {
- return '';
+ return this.value;
}
};
PreloadAttribute.prototype.getValue = function() {
var preload, protocol;
if (!this.webViewImpl.webviewNode.hasAttribute(this.name)) {
- return '';
+ return this.value;
}
preload = resolveURL(this.webViewImpl.webviewNode.getAttribute(this.name));
protocol = preload.substr(0, 5);