[TIMOB-8936] iOS: Using backgorund gradient results in Error Adding an event listener to a proxy that isn't already in the context
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-05-04T09:06:57.000+0000 |
Affected Version/s | Release 2.0.1 |
Fix Version/s | Release 2.1.0, Sprint 2012-09 API |
Components | iOS |
Labels | api, module_button, qe-testadded |
Reporter | Neville Dastur |
Assignee | Blain Hamon |
Created | 2012-04-17T15:53:24.000+0000 |
Updated | 2012-07-10T16:43:59.000+0000 |
Description
For more info, visit this post:
http://developer.appcelerator.com/question/135176/error-adding-an-event-listener-to-a-proxy-that-isnt-already-in-the-context
Problem - You get the following error in the console: "[ERROR] Adding an event listener to a proxy that isn't already in the context".
I found it using:
var win = Ti.UI.createWindow({
backgroundColor : 'white'
});
var buttonAddFav = Titanium.UI.createButton({
title : 'add2favs',
borderRadius : 8,
borderWidth : 1,
borderColor : '#111',
backgroundImage : 'none',
backgroundGradient : {
type : 'linear',
colors : ['#aaa', '#f00']
},
height : 40,
width : 200,
top : 10,
bottom : 10
});
win.add(buttonAddFav);
win.open();
Tested using 2.0.1GA2 using the iOS simulator
Closing issue Tested with Ti Studio build 2.1.0.201206172244 Ti Mobile SDK 2.1.0.v20120619142258 hash r5982b78e OSX Lion 10.7.3 iPhone 4S OS 5.1 The expected behavior is shown