revert(Modeling): change back 'createTemplate' to 'createDiagram'

This commit is contained in:
Ricardo Matias 2015-11-11 11:31:58 +01:00
parent 4e79d16c90
commit a6b76d7fc3
3 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@ var IdSupport = require('bpmn-moddle/lib/id-support'),
var Viewer = require('./Viewer');
var initialTemplate =
var initialDiagram =
'<?xml version="1.0" encoding="UTF-8"?>' +
'<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' +
'xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" ' +
@ -106,8 +106,8 @@ function Modeler(options) {
inherits(Modeler, Viewer);
Modeler.prototype.createTemplate = function(done) {
return this.importXML(initialTemplate, done);
Modeler.prototype.createDiagram = function(done) {
return this.importXML(initialDiagram, done);
};
Modeler.prototype.createModdle = function() {

View File

@ -20,7 +20,7 @@ describe('scenario - simple modeling', function() {
var modeler = new Modeler({ container: container });
// when
modeler.createTemplate(function(err) {
modeler.createDiagram(function(err) {
done(err);
});

View File

@ -189,7 +189,7 @@ describe('Modeler', function() {
it('should create new diagram', function(done) {
var modeler = new Modeler({ container: container });
modeler.createTemplate(done);
modeler.createDiagram(done);
});