Skip to content

Instantly share code, notes, and snippets.

@endash
Created August 15, 2008 18:54
Show Gist options
  • Save endash/5625 to your computer and use it in GitHub Desktop.
Save endash/5625 to your computer and use it in GitHub Desktop.
sessionLength: function(key, value) {
if(value !== undefined) {
this.writeAttribute('sessionLength', value)
} else {
var sl = this.readAttribute('sessionLength') ;
if(sl > 0)
return sl;
return '0';
}
}.property(),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment