Browse Source

Fix jshint - #209 #232

pull/246/head
Masayuki Tanaka 11 years ago
parent
commit
6f3389dba7
  1. 10
      c3.js
  2. 4
      c3.min.js

10
c3.js

@ -1,6 +1,8 @@
(function (window) {
'use strict';
/*global define, module, exports, require */
var c3 = {
version: "0.1.38"
};
@ -76,7 +78,7 @@
*/
c3.generate = function (config) {
var d3 = window.d3 ? window.d3 : 'undefined' != typeof require ? require("d3") : undefined;
var d3 = window.d3 ? window.d3 : 'undefined' !== typeof require ? require("d3") : undefined;
var c3 = { data : {}, axis: {}, legend: {} },
cache = {};
@ -4539,9 +4541,9 @@
return typeof v !== 'undefined';
}
if (typeof window.define === "function" && window.define.amd) {
window.define("c3", ["d3"], c3);
} else if ('undefined' !== typeof exports && 'undefined' !== typeof module){
if (typeof define === "function" && define.amd) {
define("c3", ["d3"], c3);
} else if ('undefined' !== typeof exports && 'undefined' !== typeof module) {
module.exports = c3;
} else {
window.c3 = c3;

4
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save