Author: mfranklin
Date: Wed May 29 17:41:17 2013
New Revision: 1487562

URL: http://svn.apache.org/r1487562
Log:
moved template variable declaration to top of closure RAVE-972

Modified:
    
rave/trunk/rave-portal-resources/src/main/webapp/static/script/portal/rave_ui.js

Modified: 
rave/trunk/rave-portal-resources/src/main/webapp/static/script/portal/rave_ui.js
URL: 
http://svn.apache.org/viewvc/rave/trunk/rave-portal-resources/src/main/webapp/static/script/portal/rave_ui.js?rev=1487562&r1=1487561&r2=1487562&view=diff
==============================================================================
--- 
rave/trunk/rave-portal-resources/src/main/webapp/static/script/portal/rave_ui.js
 (original)
+++ 
rave/trunk/rave-portal-resources/src/main/webapp/static/script/portal/rave_ui.js
 Wed May 29 17:41:17 2013
@@ -20,7 +20,7 @@
 rave = rave || {};
 rave.ui = rave.ui || {}
 _.extend(rave.ui, (function () {
-    var exports = {}, templates=null;
+    var exports = {}, templates=exports.templates={};
 
 
     /*
@@ -57,8 +57,6 @@ _.extend(rave.ui, (function () {
      Register templates
      */
     function initializeTemplates() {
-
-        templates = exports.templates = {};
         $('[data-template-for]').each(function () {
             var key = $(this).data('template-for');
             var source = $(this).html();


Reply via email to