[Groonga-commit] groonga/heroku-try-groonga at b98c1f6 [master] Use '===' instead of '=='

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Feb 11 14:33:50 JST 2015


Kouhei Sutou	2015-02-11 14:33:50 +0900 (Wed, 11 Feb 2015)

  New Revision: b98c1f6b003eeb1296505eada6e0885e8627b6f2
  https://github.com/groonga/heroku-try-groonga/commit/b98c1f6b003eeb1296505eada6e0885e8627b6f2

  Message:
    Use '===' instead of '=='

  Modified files:
    public/js/try-groonga.js

  Modified: public/js/try-groonga.js (+4 -4)
===================================================================
--- public/js/try-groonga.js    2014-10-29 23:44:35 +0900 (1409fc2)
+++ public/js/try-groonga.js    2015-02-11 14:33:50 +0900 (2d5ad4f)
@@ -6,7 +6,7 @@ jQuery(function($, undefined) {
     var sendCommand = function() {
       var success = function(data, textStatus, jqXHR) {
         var response;
-        if (typeof data == "string") {
+        if (typeof data === "string") {
           response = data;
         } else {
           response = JSON.stringify(data, undefined, 2);
@@ -22,7 +22,7 @@ jQuery(function($, undefined) {
     };
 
     sendCommandQueue.push(sendCommand);
-    if (sendCommandQueue.length == 1) {
+    if (sendCommandQueue.length === 1) {
       sendCommand();
     }
   }
@@ -33,7 +33,7 @@ jQuery(function($, undefined) {
     }
 
     enqueueCommand(command, function(response) {
-      if (response.length == 0) {
+      if (response.length === 0) {
         return;
       }
       term.echo(response);
@@ -60,7 +60,7 @@ jQuery(function($, undefined) {
         continue;
       }
       enqueueCommand(line, function(response) {
-        if (response.length == 0) {
+        if (response.length === 0) {
           return;
         }
         responses.push(response)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index