mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 03:30:02 +08:00
twitter using resources
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user