Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Grid: Fix store to handle empty localStorage

  • Loading branch information...
commit c739542e9827d567fb0803bf9d51113b99465e12 1 parent f0d8e17
Jörn Zaefferer jzaefferer authored

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 2 grid-editing/localstore.js
6 grid-editing/localstore.js
@@ -31,11 +31,13 @@ $.widget( "demos.localstore", {
31 31 url: this.options.initial,
32 32 async: false,
33 33 success: function( result ) {
34   - that.save( result );
  34 + that.data = result;
  35 + that.save();
35 36 }
36 37 });
37 38 } else {
38   - this.save( this.options.initial );
  39 + this.data = this.options.initial;
  40 + this.save();
39 41 }
40 42 }
41 43 },

0 comments on commit c739542

Please sign in to comment.
Something went wrong with that request. Please try again.