twitter using resources

This commit is contained in:
Adam Abrons
2010-03-16 14:38:56 -07:00
parent 9e1f085ba6
commit 2df072e3f8
6 changed files with 21 additions and 20 deletions

View File

@@ -49,7 +49,7 @@ ResourceFactory.prototype = {
actions = $.extend({}, ResourceFactory.DEFAULT_ACTIONS, actions);
function extractParams(data){
var ids = {};
foreach(paramDefaults, function(value, key){
foreach(paramDefaults || {}, function(value, key){
ids[key] = value.charAt && value.charAt(0) == '@' ? Scope.getter(data, value.substr(1)) : value;
});
return ids;