node-barefoot
Advanced tools
Comparing version 0.0.10 to 0.0.11
# Changes | ||
## 0.0.11 | ||
* Don't start Backbone.History for browsers not supporting JavaScript History and/or `pushState` | ||
## 0.0.10 | ||
@@ -3,0 +6,0 @@ * Bug fixed: `DataStore` was not deserializing collections properly. |
@@ -21,3 +21,3 @@ /** Mixin: Barefoot.DataStore.Client | ||
* <Barefoot.DataStore.registerCollection>. Otherwise parse will throw an error | ||
* as soon as i tries to deserialize such an object. | ||
* as soon as it tries to deserialize such an object. | ||
* | ||
@@ -24,0 +24,0 @@ * Parameters: |
@@ -23,3 +23,3 @@ /** Mixin: Barefoot.Start.Client | ||
function start(Router, APIAdapter, startOptions) { | ||
/* global $ */ | ||
/* global $, window, history */ | ||
$(function() { | ||
@@ -30,4 +30,9 @@ // Ensure that Backbone is globally available when running on the | ||
// from modernizr, MIT | BSD | ||
// http://modernizr.com/ | ||
var useHistory = !!(window.history && history.pushState); | ||
Backbone.history.start({ | ||
pushState: true | ||
pushState: useHistory | ||
, hashChange: useHistory | ||
, silent: true | ||
@@ -34,0 +39,0 @@ }); |
@@ -25,4 +25,4 @@ /** Mixin: Barefoot.DataStore.Server | ||
* <Barefoot.DataStore.registerModel> and | ||
* <Barefoot.DataStore.registerCollection>. Otherwise parse will throw an error | ||
* as soon as i tries to deserialize such an object. | ||
* <Barefoot.DataStore.registerCollection>. Otherwise parse will throw an error | ||
* as soon as it tries to deserialize such an object. | ||
* | ||
@@ -29,0 +29,0 @@ * Returns: |
{ | ||
"name": "node-barefoot" | ||
, "version": "0.0.10" | ||
, "version": "0.0.11" | ||
, "description": "Barefoot makes code sharing between browser and server reality. Write your application once and run it on both ends of the wire." | ||
@@ -5,0 +5,0 @@ , "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
793866
5765