vendor/assets/javascripts/json2.js in backbone-rails-0.9.2 vs vendor/assets/javascripts/json2.js in backbone-rails-0.9.9

- old
+ new

@@ -1,8 +1,8 @@ /* - http://www.JSON.org/json2.js - 2011-10-19 + json2.js + 2012-10-08 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. @@ -157,11 +157,10 @@ // Create a JSON object only if one does not already exist. We create the // methods in a closure to avoid creating global variables. -var JSON; -if (!JSON) { +if (typeof JSON !== 'object') { JSON = {}; } (function () { 'use strict';