Browse Source

args is always array anyway

Herby Vojčík 6 năm trước cách đây
mục cha
commit
d787d00cc9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lang/base/kernel-runtime.js

+ 1 - 1
lang/base/kernel-runtime.js

@@ -377,7 +377,7 @@ define(function () {
         st.accessJavaScript = function (self, propertyName, args) {
             var propertyValue = self[propertyName];
             if (typeof propertyValue === "function" && !/^[A-Z]/.test(propertyName)) {
-                return propertyValue.apply(self, args || []);
+                return propertyValue.apply(self, args);
             } else if (args.length === 0) {
                 return propertyValue;
             } else {