You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2012/11/06 01:38:29 UTC

[24/25] js commit: Update lib/common/utils.js

Update lib/common/utils.js

Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/8bc917e1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/8bc917e1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/8bc917e1

Branch: refs/heads/master
Commit: 8bc917e1d0791c6effa6b487f0a2639cafe3ca3f
Parents: d4cd536
Author: wangmingfeng <mi...@gmail.com>
Authored: Wed Oct 17 15:25:59 2012 +0800
Committer: wangmingfeng <mi...@gmail.com>
Committed: Wed Oct 17 15:25:59 2012 +0800

----------------------------------------------------------------------
 lib/common/utils.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/8bc917e1/lib/common/utils.js
----------------------------------------------------------------------
diff --git a/lib/common/utils.js b/lib/common/utils.js
index 8f1415e..05a7be3 100644
--- a/lib/common/utils.js
+++ b/lib/common/utils.js
@@ -87,8 +87,8 @@ utils.extend = (function() {
  * Alerts a message in any available way: alert or console.log.
  */
 utils.alert = function(msg) {
-    if (alert) {
-        alert(msg);
+    if (window.alert) {
+        window.alert(msg);
     } else if (console && console.log) {
         console.log(msg);
     }