Browse Source

args is always array anyway

Herby Vojčík 5 years ago
parent
commit
d787d00cc9
1 changed files with 1 additions and 1 deletions
  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 {