Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10345] Blackberry: Implement applyProperties({}) method on Ti.UI objects to take a list of json properties as is done at create time.

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-06-03T09:50:52.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 12 BB, 2013 Sprint 12, Release 3.3.0, Release 3.4.0
ComponentsBlackBerry
Labelsblackberry, medium, module_window, qe-3.3.0, qe-testadded
ReporterRussell McMahon
AssigneePedro Enrique
Created2012-08-08T11:45:59.000+0000
Updated2014-06-11T18:32:47.000+0000

Description

Comments

  1. Pedro Enrique 2013-06-07

    Test code
       var 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();
       
    PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/91
  2. Priya Agarwal 2013-10-25

    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
  3. Olga Romero 2014-06-02

    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)
  4. Pedro Enrique 2014-06-03

    PR for 3.3.X has been merged: https://github.com/appcelerator/titanium_mobile_blackberry/pull/257
  5. Olga Romero 2014-06-11

    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

JSON Source