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 |
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
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
var BlurDirective = function ($parse) { | |
return { | |
restrict: 'A', | |
link: function (scope, elm, attrs) { | |
var callback = $parse(attrs.blur); | |
elm.bind('blur', function (event) { | |
scope.$apply(function () { | |
callback(scope, {$event: event}); |
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
/*jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, latedef:true, newcap:true, noarg:true, | |
noempty:true, nonew:true, undef:true, unused:true, strict:true, browser:true */ | |
/*globals | |
$: false, | |
_: false | |
*/ | |
// needs to be made generic at some point | |
var ToolTipDirective = function ($compile) { |
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
/*jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, latedef:true, newcap:true, noarg:true, | |
noempty:true, nonew:true, undef:true, unused:true, strict:true, browser:true */ | |
/*globals | |
String: false; | |
*/ | |
var TruncateFilter = function () { | |
return function (text, length, end) { |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xmlns:task="http://www.springframework.org/schema/task" | |
xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:util="http://www.springframework.org/schema/util" | |
xmlns:cache="http://www.springframework.org/schema/cache" | |
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd | |
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd | |
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd |
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
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>exec-maven-plugin</artifactId> | |
<version>1.2.1</version> | |
<executions> | |
<execution> | |
<phase>test</phase> | |
<goals> | |
<goal>exec</goal> | |
</goals> |
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
/*jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, latedef:true, newcap:true, noarg:true, | |
noempty:true, nonew:true, undef:true, unused:true, strict:true, browser:true, camelcase:false, unused: false */ | |
/*globals | |
$: false, | |
app: false, | |
angular: false, | |
factory: false, | |
UrlHelper: false, | |
showFeedUrl: false, |
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
/*jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true, latedef:true, newcap:true, noarg:true, | |
noempty:true, nonew:true, undef:true, unused:true, strict:true, browser:true, camelcase:false */ | |
/*globals | |
_: false | |
*/ | |
/*exported | |
BrowserStorageFactory | |
*/ |
OlderNewer