Browse Source

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
commit
c64e26deea
  1. 3
      platform/firefox/vapi-background.js

3
platform/firefox/vapi-background.js

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

Loading…
Cancel
Save