Remove isolate scope, not needed

This commit is contained in:
Rashid Khan 2014-09-08 16:37:06 -07:00
parent 86284b0440
commit 4884527bd5
2 changed files with 1 additions and 2 deletions

View file

@ -4,7 +4,6 @@ define(function (require) {
.directive('confirmClick', function () {
return {
restrict: 'A',
scope: {},
link: function ($scope, $elem, attrs) {
$elem.bind('click', function () {
var message = attrs.confirmation || 'Are you sure?';

View file

@ -34,7 +34,7 @@ define(function (require) {
$elem.scope().$digest();
// Grab the isolate scope so we can test it
$scope = $elem.isolateScope();
$scope = $elem.scope();
// Add a function to check the run status of.
$scope.runThis = sinon.spy();