Re: [w3c/IndexedDB] Adding examples for “versionchange” and “blocked”. (#133)

inexorabletash commented on this pull request.



> +      displayMessage("Please reload this page for the latest version.");
+    }
+  });
+};
+
+function saveUnsavedData() {
+  // How you do this depends on your app.
+}
+
+function displayMessage() {
+  // Show a non-modal message to the user.
+}
+</pre>
+
+Another way is to call the database's close method. Other code on your page
+should react to the database's "close" event, so it knows the database is no

And therefore it might be worth adding a note to the `onclose` definition that it's only fired in abnormal close scenarios. Look for the _forced close_ flag.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/pull/133

Received on Saturday, 7 January 2017 00:08:38 UTC