Files correlati : cg0.exe cg0700a.msk cg0700b.msk cg3.exe cg4.exe Bug : Commento: Merge 1.0 libraries
18 lines
370 B
JavaScript
18 lines
370 B
JavaScript
function bindProperty()
|
|
{
|
|
a = (function(){ return aNumber * 10 })
|
|
}
|
|
|
|
|
|
function TestObject() { }
|
|
TestObject.prototype.aNumber = 928349
|
|
TestObject.prototype.bindFunction = function() {
|
|
return this.aNumber * 10 // this should not use the TestObject's aNumber
|
|
}
|
|
var testObj = new TestObject()
|
|
|
|
function bindPropertyWithThis()
|
|
{
|
|
a = testObj.bindFunction
|
|
}
|