Skip to content

Instantly share code, notes, and snippets.

@deanlandolt
Created March 1, 2010 20:40
Show Gist options
  • Save deanlandolt/318782 to your computer and use it in GitHub Desktop.
Save deanlandolt/318782 to your computer and use it in GitHub Desktop.
// simple repl test
var test = require("model").Model("test", require("store/js-file").JSFile(),
{
properties: {
foo: {type: "string"},
bar: {type: "integer", optional: true}
}
}
);
test.put({id: "a", foo: "foo"});
var a = test.get("a");
print(a instanceof test);
// false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment