cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [24/25] js commit: Update lib/common/utils.js
Date Tue, 06 Nov 2012 00:38:29 GMT
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 <mingfengwang01@gmail.com>
Authored: Wed Oct 17 15:25:59 2012 +0800
Committer: wangmingfeng <mingfengwang01@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);
     }


Mime
View raw message