Permalink
Browse files

Opera browser is back

  • Loading branch information...
1 parent f246824 commit 0b6e4c9c4b86fac4966e889c17b4f66e0dc95e20 @WebReflection committed Aug 31, 2011
Showing with 17 additions and 14 deletions.
  1. +4 −4 build/db.js
  2. +1 −1 build/db.min.js
  3. BIN build/dbjs.xpi
  4. +3 −3 extension/lib/db.js
  5. +2 −2 src/intro.js
  6. +1 −1 src/outro.js
  7. +1 −1 src/web/functions.js
  8. +5 −2 test/db.html
View
@@ -3,9 +3,9 @@
*/
/**@license (C) Andrea Giammarchi, @WebReflection - Mit Style License
*/
-var Database = (function (window) {"use strict";
+var Database = (function (window, $Database) {"use strict";
- if (window.Database) return window.Database;
+ if ($Database in window && !window.opera) return window[$Database];
/**
* Copyright (C) 2011 by Andrea Giammarchi, @WebReflection
@@ -146,7 +146,7 @@ var Database = (function (window) {"use strict";
self = this,
rows, item
;
- self.read('SELECT * FROM sqlite_master WHERE name = ?', arrayfy(name), function (e) {
+ self.query('SELECT * FROM sqlite_master WHERE name = ?', arrayfy(name), function (e) {
if (e.type == "success") {
item = e.length && e.result.rows.item(0);
if (item && item.type == "table" && (item.tbl_name || item.name) == name) {
@@ -226,4 +226,4 @@ var Database = (function (window) {"use strict";
return Database;
-}(this));
+}(this, "Database"));
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
Binary file not shown.
View
@@ -3,9 +3,9 @@
*/
/**@license (C) Andrea Giammarchi, @WebReflection - Mit Style License
*/
-var Database = (function (window) {exports.Database = Database;
+var Database = (function (window, $Database) {exports.Database = Database;
- if (window.Database) return window.Database;
+ if ($Database in window && !window.opera) return window[$Database];
/**
* Copyright (C) 2011 by Andrea Giammarchi, @WebReflection
@@ -256,4 +256,4 @@ var Database = (function (window) {exports.Database = Database;
return Database;
-}(this));
+}(this, "Database"));
View
@@ -1,7 +1,7 @@
-var Database = (function (window) {/*{use_strict}*/
+var Database = (function (window, $Database) {/*{use_strict}*/
- if (window.Database) return window.Database;
+ if ($Database in window && !window.opera) return window[$Database];
/**
* Copyright (C) 2011 by Andrea Giammarchi, @WebReflection
View
@@ -1,4 +1,4 @@
return Database;
-}(this));
+}(this, "Database"));
View
@@ -84,7 +84,7 @@
self = this,
rows, item
;
- self.read('SELECT * FROM sqlite_master WHERE name = ?', arrayfy(name), function (e) {
+ self.query('SELECT * FROM sqlite_master WHERE name = ?', arrayfy(name), function (e) {
if (e.type == "success") {
item = e.length && e.result.rows.item(0);
if (item && item.type == "table" && (item.tbl_name || item.name) == name) {
View
@@ -198,9 +198,12 @@
]);
- }</script>
+ }
+
+ document.write('<' + 'script src="../build/db.min.js?_=' + Math.random() + '"' + '>' + '<' + '/script>');
+
+ </script>
- <script src="../build/db.min.js"></script>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />

0 comments on commit 0b6e4c9

Please sign in to comment.