Move public JavaScript functions into the RB namespace.
Review Request #3048 — Created April 9, 2012 and submitted — Latest diff uploaded
Move public JavaScript functions into the RB namespace. Pipeline now wraps all compressed JavaScript files in its own scope, causing any functions defined within to be inaccessible outside the file (such as to the <script> tags in the HTML). So now, we just stick these in the RB namespace, like the API. Down the road, we'll want to probably refactor these to be a bit more object-oriented and better namespaced.
Ran it here, and it seemed to work. It's possible that in a deployment, we may find some issues between functions from one script calling another, but I haven't hit any yet.