Browse Source

lhf: faster js2st

Herbert Vojčík 8 years ago
parent
commit
a25def5db2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      support/boot.js

+ 1 - 1
support/boot.js

@@ -1095,7 +1095,7 @@ define("amber/boot", ['require', './browser-compatibility'], function (require)
          if you modify the following functions, also change st2js
          accordingly */
         st.js2st = function (selector) {
-            if (selector.match(/__/)) {
+            if (selector.match(/^__/)) {
                 return binaryJsToSt(selector);
             } else {
                 return keywordJsToSt(selector);