Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2054)

Unified Diff: dart/site/try/index.html

Issue 535883002: Use JavaScript to detect if Selection.modify is available. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r39804 Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dart/site/try/src/interaction_manager.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/site/try/index.html
diff --git a/dart/site/try/index.html b/dart/site/try/index.html
index 09ad1b3cd9b89ecb93aba5d70a7bbb623e757542..0a42cad4722513472c24d5474e8bdfafa4d89fd0 100644
--- a/dart/site/try/index.html
+++ b/dart/site/try/index.html
@@ -275,6 +275,14 @@ Except as otherwise <a href="http://code.google.com/policies.html#restrictions">
<script type="application/javascript" src="https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/browser/lib/dart.js"></script>
<script type="application/dart" src="leap.dart"></script>
-->
+<script type="application/javascript">
+ if (self.localStorage &&
+ !Object.prototype.hasOwnProperty.call(
+ self.localStorage, 'hasSelectionModify')) {
+ self.localStorage.hasSelectionModify =
+ typeof window.getSelection().modify != 'undefined';
+ }
+</script>
<script type="application/javascript" src="leap.dart.js"></script>
</body>
</html>
« no previous file with comments | « no previous file | dart/site/try/src/interaction_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698