Skip to content

Instantly share code, notes, and snippets.

View dasa's full-sized avatar
:octocat:

Dasa Paddock dasa

:octocat:
View GitHub Profile
define(["require", "exports"], function(require, exports) {
var Storage = (function () {
function Storage() {
}
Storage.fetch = function () {
if (!Storage.todos) {
Storage.todos = JSON.parse(localStorage.getItem(Storage.STORAGE_KEY) || '[]');
}
return Storage.todos;
};
@dasa
dasa / LayerStylePane.js
Created January 16, 2014 21:42
Dojo TypeScript extension test. Output js files compiled using: tsc -m amd test.ts
/// <reference path="./dojo-test"/>
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
define(["require", "exports", "dijit/layout/ContentPane"], function(require, exports, ContentPane) {