Permalink
Browse files

Remove problematic optimization for local base class properties.

  • Loading branch information...
1 parent 35444d0 commit 87cc02ed8106fa8b25c1852d11e24a0208fb230d @mattjphillips mattjphillips committed Jun 19, 2013
@@ -860,13 +860,7 @@ internal static class ExpressionGenerator {
Debug.Assert(baseClass != null);
writer.Write(baseClass.FullGeneratedName);
- if (baseClass.IsApplicationType) {
- writer.Write("$.");
- }
- else {
- writer.Write(".prototype.");
- }
- writer.Write("get_");
+ writer.Write(".prototype.get_");
writer.Write(expression.Property.GeneratedName);
writer.Write(".call(");
writer.Write(generator.CurrentImplementation.ThisIdentifier);
@@ -67,7 +67,7 @@ define('test', ['ss'], function(ss) {
test2: function() {
var n = this.get_XYZ();
n = this.get_XYZ();
- n = App$.get_XYZ.call(this);
+ n = App.prototype.get_XYZ.call(this);
this.set_XYZ(n);
this.set_XYZ(n);
ss.base(this, 'set_XYZ').call(this, n);
@@ -41,7 +41,7 @@ define('test', ['ss'], function(ss) {
function Test2() {
Test.call(this);
- var n = Test$.get_XYZ.call(this);
+ var n = Test.prototype.get_XYZ.call(this);
if (n === this.get_XYZ()) {
}
if (this.get_XYZ() === n) {

0 comments on commit 87cc02e

Please sign in to comment.