This question is locked. New answers and comments are not allowed.
I discovered this on one of my first ventures in to refactoring JS code ...
Before ...
| <script type="text/javascript"> |
| function xx() { |
| // Blah, doing stuff |
| var szp = $find("<%= RadPane1.ClientID %>"); |
| szp.expand(); |
| // more stuff |
| } |
| </script> |
After using JC's "Extract Method" ...
| <script type="text/javascript"> |
| function xx() { |
| // Blah, doing stuff |
| NewMethod($find); |
| // more stuff |
| } |
| function NewMethod($find) |
| { |
| var szp = $find("<%= RadPane1.ClientID %>"); |
| szp.expand(); |
| } |
| </script> |
That's not right, is it?
--
Stuart