Browse Source

kernel: optimization

Herbert Vojčík 7 years ago
parent
commit
e2bc4abf95
1 changed files with 1 additions and 2 deletions
  1. 1 2
      support/kernel-runtime.js

+ 1 - 2
support/kernel-runtime.js

@@ -426,11 +426,10 @@ define(function () {
         /* Send message programmatically. Used to implement #perform: & Co. */
 
         st.send2 = function (receiver, selector, args, klass) {
-            var method, jsSelector = st.st2js(selector);
             if (receiver == null) {
                 receiver = nilAsReceiver;
             }
-            method = klass ? klass.fn.prototype[jsSelector] : receiver.klass && receiver[jsSelector];
+            var method = klass ? klass.fn.prototype[st.st2js(selector)] : receiver.klass && receiver[st.st2js(selector)];
             if (method) {
                 return method.apply(receiver, args || []);
             } else {