diff --git a/docs/content/guide/compiler.ngdoc b/docs/content/guide/compiler.ngdoc index 9915107b..d315df45 100644 --- a/docs/content/guide/compiler.ngdoc +++ b/docs/content/guide/compiler.ngdoc @@ -70,8 +70,8 @@ Here is a directive which makes any element draggable. Notice the `draggable` at angular.module('drag', []). directive('draggable', function($document) { - var startX=0, startY=0, x = 0, y = 0; return function(scope, element, attr) { + var startX = 0, startY = 0, x = 0, y = 0; element.css({ position: 'relative', border: '1px solid red',