flex-users / flexlib

Open Source Flex components library.
github.com/flex-users/flexlib
MIT License
204 stars 91 forks source link

CSSPropertyInjector doesn't protect against exceptions #334

Open nicoulaj opened 13 years ago

nicoulaj commented 13 years ago

Originally filed by chrisnoj...@gmail.com on 2010-10-01T21:23:17

What steps will reproduce the problem?

  1. Apply an aggregate injection on a property that doesn't exist
  2. The aggregate binding of the sub csspropinjector onto the new class will throw an error and all other properties will be skipped

What is the expected output? What do you see instead? No, it should instead keep going with the other values (print out an error?)

What version of the product are you using? On what operating system? 3.5

Please provide any additional information below. Fix is to wrap the function assignStylesToTarget with a try block, in the for loop over __aggregateStyles