This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var BlurDirective = function () { | |
return { | |
restrict: 'A', | |
link: function (scope, elm, attrs) { | |
elm.bind('blur', function () { | |
console.log(attrs); | |
var blurArgs = attrs.blur, | |
functionName = blurArgs.match(/([^\(]*)/), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* STEPS | |
* 1. Download JSCover from https://github.com/tntim96/JSCover/downloads | |
* 2. Download htmlunit bin rather than src version from http://sourceforge.net/projects/htmlunit/files/htmlunit/ | |
*/ | |
// start JSCover-all.jar | |
java -jar target/dist/JSCover-all.jar -ws --document-root=/www/dsa/project/web --no-instrument=js/test --no-instrument=js/lib/vendor --report-dir=target | |
/** | |
* Example to use in the brows |
NewerOlder