浏览代码

Consistency modifications

n1474335 8 年之前
父节点
当前提交
463b06f508
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 2
      src/core/Dish.js
  2. 1 0
      src/core/Ingredient.js

+ 2 - 2
src/core/Dish.js

@@ -11,10 +11,10 @@ import Utils from "./Utils.js";
  * @param {byteArray|string|number} value - The value of the input data.
  * @param {byteArray|string|number} value - The value of the input data.
  * @param {number} type - The data type of value, see Dish enums.
  * @param {number} type - The data type of value, see Dish enums.
  */
  */
-function Dish(value, type) {
+const Dish = function(value, type) {
     this.value = value || typeof value == "string" ? value : null;
     this.value = value || typeof value == "string" ? value : null;
     this.type  = type || Dish.BYTE_ARRAY;
     this.type  = type || Dish.BYTE_ARRAY;
-}
+};
 
 
 
 
 /**
 /**

+ 1 - 0
src/core/Ingredient.js

@@ -64,6 +64,7 @@ Ingredient.prototype.setValue = function(value) {
 */
 */
 Ingredient.prepare = function(data, type) {
 Ingredient.prepare = function(data, type) {
     let number;
     let number;
+
     switch (type) {
     switch (type) {
         case "binaryString":
         case "binaryString":
         case "binaryShortString":
         case "binaryShortString":