[TIMOB-10345] Blackberry: Implement applyProperties({}) method on Ti.UI objects to take a list of json properties as is done at create time.
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2014-06-03T09:50:52.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | 2013 Sprint 12 BB, 2013 Sprint 12, Release 3.3.0, Release 3.4.0 |
| Components | BlackBerry |
| Labels | blackberry, medium, module_window, qe-3.3.0, qe-testadded |
| Reporter | Russell McMahon |
| Assignee | Pedro Enrique |
| Created | 2012-08-08T11:45:59.000+0000 |
| Updated | 2014-06-11T18:32:47.000+0000 |
Test code
PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/91var win = Ti.UI.createWindow(); var label = Ti.UI.createLabel({ left: 10, right: 10, text: 'Hello World!' }); var btn = Ti.UI.createButton({ bottom: 10, title: 'applyProperties' }); win.add(label); win.add(btn); btn.addEventListener('click', function(){ label.applyProperties({ text: 'properties applied!', backgroundColor: 'red', top: 10 }) }); win.open();Verified the fix with: Appcelerator Studio: 3.2.0.201310250414 SDK:3.2.0.v20131024120843 alloy: 1.2.2 acs: 1.0.7 npm: 1.3.2 titanium: 3.2.0 titanium-code-processor: 1.0.3 Device:Blackberry Z10(v 10.0) OS: OSX 10.9 Have checked apply properties({}) method for window object. Working fine
Actual result
TypeError:Object[object tiUIWindowProxy]has no method 'applyProperties' at[objectObject] after click on button Tested with: Mac osx 10.9.3 Mavericks Appcelerator Studio, build: 3.3.0.201405271647 Titanium SDK, build: 3.3.0.v20140530163312 Node.JS Version: v0.10.13 NPM Version: 1.3.2 acs@1.0.14 alloy@1.4.0-beta npm@1.3.2 titanium@3.3.0-beta2 titanium-code-processor@1.1.1 Device: BB Z10 (10.2.1)PR for 3.3.X has been merged: https://github.com/appcelerator/titanium_mobile_blackberry/pull/257
Closing as fixed. Tested with Mac osx 10.9.3 Mavericks Appcelerator Studio, build: 3.3.0.201406061445 Titanium SDK, build: 3.3.0.v20140611084912 Node.JS Version: v0.10.13 NPM Version: 1.3.2 acs@1.0.14 alloy@1.4.0-beta npm@1.3.2 titanium@3.3.0-beta2 titanium-code-processor@1.1.1 Device: BB Z10 (10.2.1