]> source.dussan.org Git - vaadin-framework.git/commitdiff
Use method available in all browsers (#13804)
authorArtur Signell <artur@vaadin.com>
Wed, 21 May 2014 19:18:05 +0000 (22:18 +0300)
committerVaadin Code Review <review@vaadin.com>
Thu, 22 May 2014 06:27:36 +0000 (06:27 +0000)
String.contains work in Firefox, not in Chrome or Opera

Change-Id: I074d3c79629fd699841d3b39a36620511233ce6c

WebContent/VAADIN/vaadinBootstrap.js

index ea1ea21b46c33fc3048e873d5de7f39a4ced0c2c..df46d8bc725ceda6765b74dfbb48f1b864b86f95 100644 (file)
@@ -67,7 +67,7 @@
                        // "v-app-loading" we have only received the HTML 
                        // but not yet started the widget set
                        // (UIConnector removes the v-app-loading div).
-                       if (className && className.contains("v-app-loading")) {
+                       if (className && className.indexOf("v-app-loading") != -1) {
                                return false;
                        }
                }