Skip to content

Commit

Permalink
Merge branch 'fredriks-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
krispo committed Aug 17, 2016
2 parents 2a98eb5 + 36eb41c commit f1e326d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"boss": true,
"globals": {
"angular": false,
"nv": false,
"require": false,
"d3": false,
"navigator": false,
"window": false,
Expand Down
12 changes: 10 additions & 2 deletions dist/angular-nvd3.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@
* AngularJS-nvD3, v1.0.9-dev; MIT
* http://krispo.github.io/angular-nvd3
**************************************************************************/
(function(){
(function(window){

'use strict';
var nv = window.nv;

// Node.js or CommonJS
if (typeof(exports) !== 'undefined') {
/* jshint -W020 */
nv = require('nvd3');
/* jshint +W020 */
}

angular.module('nvd3', [])

Expand Down Expand Up @@ -642,4 +650,4 @@
}
};
});
})();
})(window);
Loading

0 comments on commit f1e326d

Please sign in to comment.