Permalink
Browse files

replaced monkey-patched'' methods (e.g., delegated and isImmutable) w…

…ith functions to fix incompatibilities between OMeta/JS and libraries like JQuery
  • Loading branch information...
1 parent 5c56a03 commit 62b83a954c1a668c390031d87e23d9159a4d60fb @alexwarth committed May 1, 2010
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -147,7 +147,7 @@ keywords = ["break", "case", "catch", "continue", "default", "delete", "do", "el
"instanceof", "new", "return", "switch", "this", "throw", "try", "typeof", "var", "void", "while", "with", "ometa"]
for (var idx = 0; idx < keywords.length; idx++)
BSJSParser.keywords[keywords[idx]] = true
-BSJSParser._isKeyword = function(k) { return this.keywords.hasProperty(k) && !Object.prototype.hasProperty(k) }
+BSJSParser._isKeyword = function(k) { return this.keywords.hasOwnProperty(k) }
ometa BSSemActionParser <: BSJSParser {
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 62b83a9

Please sign in to comment.