Linting fixes

This commit is contained in:
Colin McLeod
2015-06-14 17:47:16 -07:00
parent a1506d4f37
commit a4a562bd40
3 changed files with 18 additions and 20 deletions

View File

@@ -1,12 +1,12 @@
angular.module('app').directive('contextMenu', ['$parse', function($parse) {
return function(scope, element, attrs) {
var fn = $parse(attrs.contextMenu);
console.log(attrs.contextMenu, fn);
element.bind('contextmenu', function(e) {
scope.$apply(function() {
e.preventDefault();
fn(scope, { $event:e });
fn(scope, { $event: e });
});
});
};
}]);
}]);