Fix `set` for Firefox & Safari (don't set non-own properties in for..in loop)

pull/2/head
Chris 10 years ago committed by gorhill
parent 3e71ee90c6
commit c64e26deea

@ -195,6 +195,9 @@ vAPI.storage = {
var key, values = [], placeholders = [];
for ( key in details ) {
if ( !details.hasOwnProperty(key) ) {
continue;
}
values.push(key);
values.push(JSON.stringify(details[key]));
placeholders.push('?, ?');

Loading…
Cancel
Save