Skip to content

Instantly share code, notes, and snippets.

@pifantastic
Created May 13, 2010 23:13
Show Gist options
  • Select an option

  • Save pifantastic/400605 to your computer and use it in GitHub Desktop.

Select an option

Save pifantastic/400605 to your computer and use it in GitHub Desktop.
// FROM
_load: function(obj) {
if (obj) {
for (var prop in obj) {
if (obj.hasOwnProperty(prop) {
this[prop] = obj[prop];
}
}
}
if (this[this._seltzer.pk]) {
this._loaded = true;
}
}
// TO
_load: function(obj) {
if (obj) {
for (var prop in obj) {
this[prop] = obj[prop];
}
}
if (this[this._seltzer.pk]) {
this._loaded = true;
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment