Last active
December 14, 2015 01:49
-
-
Save jiggliemon/5009595 to your computer and use it in GitHub Desktop.
Revisions
-
jiggliemon revised this gist
Feb 22, 2013 . 1 changed file with 19 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ var Validate = function () { } Validate.prototype = { listeners: { 'data.set':'validate' 'init': 'setup' }, setup: function () { }, validate: function (key, data) { if (this.rules[key]) { // somehow validate this junk. // otherwise throw an error? } } } -
jiggliemon revised this gist
Feb 22, 2013 . 2 changed files with 13 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ var LocalStorage = function () { } LocalStorage.prototype = { listeners: { 'saved':'save' }, save: function (err, data) { if (!err) localStorageAllTheThings(data) } } -
jiggliemon created this gist
Feb 21, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ var Obj = require('parsed/object') var LocalStorage = require('parsed/object/localstorage') var Validation = require('parsed/object/validation') var Task = Obj.create('Task', { implement: [LocalStorage, Validation] }, { init: function () { } })