var dom = $(_.template(mainTemplateSrc)());\r
var domNodes = {\r
itemList: dom.find('.rng-module-documentHistory-itemsList'),\r
- }\r
+ };\r
var itemViews = [];\r
\r
\r
if(options.animate) {\r
view.dom.hide().slideDown();\r
}\r
- }\r
+ };\r
\r
var toggleItemViews = function(toggle) {\r
itemViews.forEach(function(view) {\r
if(!historyItems.isSelected(view.item))\r
view.toggle(toggle);\r
});\r
- }\r
+ };\r
\r
var toggleButton = function(btn, toggle) {\r
dom.find('button.'+btn).toggleClass('disabled', !toggle);\r
- }\r
+ };\r
\r
var historyItems = {\r
_itemsById: {},\r
getView: function() {\r
return dom;\r
}\r
- }\r
-}\r
+ };\r
+};\r
\r
});
\ No newline at end of file