diff options
| author | Misko Hevery | 2011-11-07 21:55:41 -0800 | 
|---|---|---|
| committer | Misko Hevery | 2011-11-14 20:31:14 -0800 | 
| commit | 4b35a59c6afd5093ed5ce7d68b75ccadd4c53696 (patch) | |
| tree | 3c6ff14a663f40816f96464163b8373bd408507c /example | |
| parent | 7cb03c5ab9376c5ce5d689f2bf1c18dc141237a1 (diff) | |
| download | angular.js-4b35a59c6afd5093ed5ce7d68b75ccadd4c53696.tar.bz2 | |
refactor(scenario): fix scenario bootstrap & publish injector for inspection
Diffstat (limited to 'example')
| -rw-r--r-- | example/personalLog/scenario/personalLogScenario.js | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/example/personalLog/scenario/personalLogScenario.js b/example/personalLog/scenario/personalLogScenario.js index 355761bd..f9a37cf4 100644 --- a/example/personalLog/scenario/personalLogScenario.js +++ b/example/personalLog/scenario/personalLogScenario.js @@ -81,8 +81,9 @@ angular.scenario.dsl('clearCookies', function() {     */    return function() {      this.addFutureAction('clear all cookies', function($window, $document, done) { -      var rootScope = $window.angular.element($document[0]).data('$scope'), -          $cookies = rootScope.$service('$cookies'), +      var element = $window.angular.element($document[0]), +          rootScope = element.scope(), +          $cookies = element.data('$injector')('$cookies'),            cookieName;        rootScope.$apply(function() { | 
