Skip to content

Commit

Permalink
Added an option to reload multiple model classes at once.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Berastau committed Feb 10, 2009
1 parent 9447847 commit 19feafd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions framework/src/org/restfulx/controllers/ModelsController.as
Expand Up @@ -538,6 +538,18 @@ package org.restfulx.controllers {
targetServiceId);
}
}

/**
* A shortcut to reload multiple models at once. Useful if you don't want to define any special options,
* such as callbacks, metadata, etc.
*
* @param models a list of models to reload
*/
public function reloadAll(... models):void {
for each (var model:Class in models) {
reload(model);
}
}

/**
* Resets model metadata.
Expand Down

0 comments on commit 19feafd

Please sign in to comment.