Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativeecmascript / data / functionAssignment.js
1 function bindProperty()
2 {
3     a = (function(){ return aNumber * 10 })
4 }
5
6
7 function TestObject() { }
8 TestObject.prototype.aNumber = 928349
9 TestObject.prototype.bindFunction = function() {
10     return this.aNumber * 10        // this should not use the TestObject's aNumber
11 }
12 var testObj = new TestObject()
13
14 function bindPropertyWithThis()
15 {
16     a = testObj.bindFunction
17 }