UglifyJS/test/input/mangle-prefix/sample.js
2017-02-09 11:20:47 +01:00

21 lines
343 B
JavaScript

var Test = function() {
this.someVar = 123;
};
Test.prototype.someMethod = function() {
console.log(this.someVar);
}
Test.prototype.someOther = function() {
console.log("other");
this.someMethod();
this.__special();
}
Test.prototype.__special = function() {
console.log("special");
}
var oTest = new Test();
oTest.someOther();