Skip to content

Commit

Permalink
Update D4 so that it can be used within the Browserify project.
Browse files Browse the repository at this point in the history
  • Loading branch information
heavysixer committed Mar 29, 2016
1 parent 5741483 commit 1182dda
Show file tree
Hide file tree
Showing 6 changed files with 5,200 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "d4",
"description": "A friendly charting DSL for D3",
"main": "d4.js",
"version": "0.9.6",
"version": "0.9.7",
"dependencies": {
"d3": "~3.5.16"
},
Expand Down
4 changes: 2 additions & 2 deletions d4.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*! d4 - v0.9.6
/*! d4 - v0.9.7
* License: MIT Expat
* Date: 2016-03-28
* Date: 2016-03-29
* Copyright: Mark Daggett, D4 Team
*/
/*!
Expand Down
2 changes: 1 addition & 1 deletion d4.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! d4 - v0.9.6
/*! d4 - v0.9.7
* License: MIT Expat
* Date: 2016-03-28
* Copyright: Mark Daggett, D4 Team
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "d4",
"version": "0.9.6",
"version": "0.9.7",
"description": "A friendly reusable chart DSL for D3",
"repository": {
"type": "git",
Expand Down
9 changes: 6 additions & 3 deletions test/lib/d4.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*! d4 - v0.9.5
/*! d4 - v0.9.7
* License: MIT Expat
* Date: 2016-03-10
* Date: 2016-03-29
* Copyright: Mark Daggett, D4 Team
*/
/*!
Expand All @@ -9,14 +9,17 @@
(c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
Underscore may be freely distributed under the MIT license.
*/

var d4;

(function() {
'use strict';

var root = this;
var breaker = {};

// Create a safe reference to the d4 object.
var d4 = function(obj) {
d4 = function(obj) {
if (obj instanceof d4) {
return obj;
}
Expand Down

0 comments on commit 1182dda

Please sign in to comment.