underscore-source 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Underscore
2
2
  module Source
3
- VERSION = "1.3.2"
3
+ VERSION = "1.3.3"
4
4
  end
5
5
  end
@@ -1,4 +1,4 @@
1
- // Underscore.js 1.3.2
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.2';
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 = _.extend(_.templateSettings, 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
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: underscore-source
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.3.2
5
+ version: 1.3.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel X. Moore