Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions way.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@
if (_w.contains(["checkbox", "radio"], type)) {
return w.dom(element).prop("checked") ? w.dom(element).val() : null;
}
//the other types such as text,password,hidden,email etc.
return w.dom(element).val();

},
"TEXTAREA": function() {
Expand Down Expand Up @@ -268,6 +270,8 @@
w.dom(element).prop("checked", false);
}
}
//the other types such as text,password,hidden,email etc.
w.dom(element).val(a || "");
},
"TEXTAREA": function(a) {
if (!_w.isString(a)) { a = JSON.stringify(a); }
Expand Down Expand Up @@ -1646,11 +1650,8 @@

var timeoutInput = null;
var eventInputChange = function(e) {
if (timeoutInput) { clearTimeout(timeoutInput); }
timeoutInput = setTimeout(function() {
var element = w.dom(e.target).get(0);
way.dom(element).toStorage();
}, way.options.timeout);
var element = w.dom(e.target).get(0);
way.dom(element).toStorage();
}

var eventClear = function(e) {
Expand Down
Loading