(parent, route, url)
| 902 | |
| 903 | |
| 904 | function allUrl(parent, route, url) { |
| 905 | if (!route) { |
| 906 | throw new Error('Route is mandatory when creating new Restangular objects.'); |
| 907 | } |
| 908 | var elem = {}; |
| 909 | config.setUrlToElem(elem, url, route); |
| 910 | return restangularizeCollection(parent, elem, route, false); |
| 911 | } |
| 912 | // Promises |
| 913 | function restangularizePromise(promise, isCollection, valueToFill) { |
| 914 | promise.call = _.bind(promiseCall, promise); |
nothing calls this directly
no test coverage detected