ElbertF/Raphael.FreeTransform — pull request #1 by shaunxcode (2011-12-07 21:29:34+00:00)
Title: use map for iteration instead of for loop

Hey I was running into issues in i.e. 8 where it would iterate over the map method you are adding to the array prototype when ever you are iterating over set of items. Obviously map adds much needed clarity to other areas so I feel the best solution was to use map in place of any of the for loops. The only tricky one was where it needs to find/return "thing", I declare var thing before the map so that it can be assigned within the map and returned after. Anyway it all seems to be working now in ie8. However I am running into an issue in ie (vml I guess?) where it is repeating the background on scale if it is not maintaining aspect ratio... any idea on that? Here it is in a jsfiddle if you want to see what I mean (again has to be ie8). http://jsfiddle.net/shaunxcode/Lg2Gy/7/