Skip to content

Commit

Permalink
view.html path definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Ni55aN committed Jun 29, 2017
1 parent b93a2bc commit 123882d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ D3 Node Editor [![Build Status](https://travis-ci.org/Ni55aN/D3-Node-editor.svg?
<script src="js/node-editor.min.js"></script>
<link href="css/node-editor.css" rel="stylesheet" type="text/css"></link>
```
Put view.html in the folder with your page

Create needed sockets
```js
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": "d3-node-editor",
"version": "0.3.0",
"version": "0.3.1",
"description": " JavaScript library",
"main": "build/node-editor.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {Socket} from './socket';

export class NodeEditor {

constructor(id, builders, event) {
constructor(id, template, builders, event) {

this.event = event;
this.active = null;
Expand Down Expand Up @@ -51,7 +51,7 @@ export class NodeEditor {

this.declareDirectives();

d3.text('view.html', (error, text) => {
d3.text(template, (error, text) => {
if (error) throw error;
this.view.html(text);
alight.applyBindings(this.$scope, this.view.node());
Expand Down

0 comments on commit 123882d

Please sign in to comment.