underscore-source 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
|
|
1
|
-
// Underscore.js 1.3.
|
1
|
+
// Underscore.js 1.3.3
|
2
2
|
// (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
|
3
3
|
// Underscore is freely distributable under the MIT license.
|
4
4
|
// Portions of Underscore are inspired or borrowed from Prototype,
|
@@ -62,7 +62,7 @@
|
|
62
62
|
}
|
63
63
|
|
64
64
|
// Current version.
|
65
|
-
_.VERSION = '1.3.
|
65
|
+
_.VERSION = '1.3.3';
|
66
66
|
|
67
67
|
// Collection Functions
|
68
68
|
// --------------------
|
@@ -952,7 +952,7 @@
|
|
952
952
|
// Underscore templating handles arbitrary delimiters, preserves whitespace,
|
953
953
|
// and correctly escapes quotes within interpolated code.
|
954
954
|
_.template = function(text, data, settings) {
|
955
|
-
settings = _.
|
955
|
+
settings = _.defaults(settings || {}, _.templateSettings);
|
956
956
|
|
957
957
|
// Compile the template source, taking care to escape characters that
|
958
958
|
// cannot be included in a string literal and then unescape them in code
|