Browse Source

Fix jshint - #209 #232

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

8
c3.js

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

4
c3.min.js vendored

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