This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Button = ReactBootstrap.Button; | |
var ButtonToolbar = ReactBootstrap.ButtonToolbar; | |
var App = React.createClass({ | |
//function to generate board and set initial state | |
createBoard: function(width,height){ | |
//function to create an array with board configuration | |
var array = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Storage.prototype.setObj = function(key,obj){ | |
//Extend local storage prototype so we can store objects | |
return this.setItem(key, JSON.stringify(obj)); | |
}; | |
Storage.prototype.getObj = function(key){ | |
return JSON.parse(this.getItem(key)); |
OlderNewer