diff options
| author | Igor Minar | 2011-02-25 14:03:02 -0800 | 
|---|---|---|
| committer | Igor Minar | 2011-03-01 17:09:25 -0800 | 
| commit | 945056b1667a69ecc4d557cc0f03894597250ced (patch) | |
| tree | 396c0ff155fe895933cbd3301874e8799fd42b65 /test/ResourceSpec.js | |
| parent | 128feb267409ee45ee5225a34aab038ddf3518fa (diff) | |
| download | angular.js-945056b1667a69ecc4d557cc0f03894597250ced.tar.bz2 | |
linking function should return bound scope
angular.compile()() returns {scope:scope, view:view},
this isn't useful at all and only makes tests more verbose.
Instead, this change makes the linking function return scope directly
and if anyone needs the linked dom there are two ways to do it
documented in angular.compile.
other changes:
- moved angular.compile docs to the compiler so that they are closer to
  the compiler
- fixed some typos and updated angular.compile docs with the new return
  value
Diffstat (limited to 'test/ResourceSpec.js')
| -rw-r--r-- | test/ResourceSpec.js | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/test/ResourceSpec.js b/test/ResourceSpec.js index c93bdafb..76909968 100644 --- a/test/ResourceSpec.js +++ b/test/ResourceSpec.js @@ -180,7 +180,7 @@ describe("resource", function() {    });    it('should excersize full stack', function(){ -    var scope = angular.compile('<div></div>')().scope; +    var scope = angular.compile('<div></div>')();      var $browser = scope.$service('$browser');      var $resource = scope.$service('$resource');      var Person = $resource('/Person/:id'); @@ -192,7 +192,7 @@ describe("resource", function() {    });    it('should return the same object when verifying the cache', function(){ -    var scope = angular.compile('<div></div>')().scope; +    var scope = angular.compile('<div></div>')();      var $browser = scope.$service('$browser');      var $resource = scope.$service('$resource');      var Person = $resource('/Person/:id', null, {query: {method:'GET', isArray: true, verifyCache: true}}); | 
