Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8936] iOS: Using backgorund gradient results in Error Adding an event listener to a proxy that isn't already in the context

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-05-04T09:06:57.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sRelease 2.1.0, Sprint 2012-09 API
ComponentsiOS
Labelsapi, module_button, qe-testadded
ReporterNeville Dastur
AssigneeBlain Hamon
Created2012-04-17T15:53:24.000+0000
Updated2012-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

Comments

  1. Michael Pettiford 2012-06-19

    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

JSON Source