Pman.GoogleTranslate.js
authorChris <chris@roojs.com>
Wed, 2 Apr 2014 12:29:46 +0000 (20:29 +0800)
committerChris <chris@roojs.com>
Wed, 2 Apr 2014 12:29:46 +0000 (20:29 +0800)
Pman.GoogleTranslate.js

index b55318b..c9ceb67 100644 (file)
@@ -144,7 +144,7 @@ Pman.GoogleTranslate = function(str, src, dest, cb, force) {
             },
             success: function(o)
             {
-                if (!o.data) {
+                if (!o) {
                     return o;
                 }
                 if(typeof(o.data.error) != 'undefined'){