Skip to content

Commit

Permalink
Merge pull request #8 from thisissoon/feature/remove-isolated-scope
Browse files Browse the repository at this point in the history
Fix: remove isolated scope from directive
  • Loading branch information
edoparearyee committed Jun 13, 2016
2 parents e6d2d2f + b6a7b63 commit fc27952
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion app/js/smartNav.js
Expand Up @@ -37,7 +37,6 @@ angular.module('sn.smartNav', [
function ($window, $document){
return {
restrict: 'A',
scope: {},
link: function($scope, $element){
/**
* The last recorded scrollTop position
Expand Down
4 changes: 1 addition & 3 deletions tests/unit/smartNav.js
Expand Up @@ -2,7 +2,7 @@

describe('sn.smartNav', function (){

var element, $scope, $rootScope, $document, $window, isolatedScope;
var element, $scope, $rootScope, $document, $window;

beforeEach(module('sn.smartNav'));

Expand All @@ -27,8 +27,6 @@ describe('sn.smartNav', function (){
element = $compile(element)($scope);
$scope.$digest();

isolatedScope = element.isolateScope();

}));

afterEach(function(){
Expand Down

0 comments on commit fc27952

Please sign in to comment.