underscore-source 1.2.4 → 1.3.0

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.2.4"
3
+ VERSION = "1.3.0"
4
4
  end
5
5
  end
@@ -1,4 +1,4 @@
1
- // Underscore.js 1.2.4
1
+ // Underscore.js 1.3.0
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,
@@ -48,26 +48,21 @@
48
48
  // Create a safe reference to the Underscore object for use below.
49
49
  var _ = function(obj) { return new wrapper(obj); };
50
50
 
51
- // Export the Underscore object for **Node.js** and **"CommonJS"**, with
52
- // backwards-compatibility for the old `require()` API. If we're not in
53
- // CommonJS, add `_` to the global object.
51
+ // Export the Underscore object for **Node.js**, with
52
+ // backwards-compatibility for the old `require()` API. If we're in
53
+ // the browser, add `_` as a global object via a string identifier,
54
+ // for Closure Compiler "advanced" mode.
54
55
  if (typeof exports !== 'undefined') {
55
56
  if (typeof module !== 'undefined' && module.exports) {
56
57
  exports = module.exports = _;
57
58
  }
58
59
  exports._ = _;
59
- } else if (typeof define === 'function' && define.amd) {
60
- // Register as a named module with AMD.
61
- define('underscore', function() {
62
- return _;
63
- });
64
60
  } else {
65
- // Exported as a string, for Closure Compiler "advanced" mode.
66
61
  root['_'] = _;
67
62
  }
68
63
 
69
64
  // Current version.
70
- _.VERSION = '1.2.4';
65
+ _.VERSION = '1.3.0';
71
66
 
72
67
  // Collection Functions
73
68
  // --------------------
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: underscore-source
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.2.4
5
+ version: 1.3.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel X. Moore