Skip to content

Commit 8c715a6

Browse files
committed
Stick an underscore back onto the page, for backwards compatibility's sake.
1 parent bcb7789 commit 8c715a6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

public/javascripts/DV/lib/initializer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ console.log || (console.log = _.identity);
55
// Create the DV namespaces.
66
window.DV = window.DV || {};
77
DV.jQuery = jQuery.noConflict(true);
8-
DV._ = _.noConflict();
8+
DV._ = _.noConflict(); // preserve a safe reference for the viewer
9+
_ = DV._; // make sure that _ is defined in the global namespace for now.
910
DV.viewers = DV.viewers || {};
1011
DV.model = DV.model || {};
1112

0 commit comments

Comments
 (0)