Skip to content

Commit

Permalink
tag 0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Sep 22, 2017
1 parent 2254738 commit 9f96f64
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 13 additions & 5 deletions dist/builder.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Builder v0.0.6
* Builder v0.0.7
* (c) 2017 Abdelrahman Ismail
* @license MIT
*/
Expand Down Expand Up @@ -6587,6 +6587,13 @@ Builder.prototype.component = function component (name, definition) {
});
};

/**
* clears the builder sections.
*/
Builder.prototype.clear = function clear () {
this.sections = [];
};

/**
* Installs added plugins.
*/
Expand Down Expand Up @@ -6624,7 +6631,7 @@ Builder.install = function install (Vue, options) {
};

/**
* The plugin to be installed with the builder. The function recieves the installation context which
* The plugin to be installed with the builder. The function receives the installation context which
* contains the builder instance and the Vue prototype.
*
* @param {Function} plugin
Expand All @@ -6646,11 +6653,12 @@ Builder.prototype.set = function set (data) {

this.title = data.title !== undefined ? data.title : this.title;
if (data.sections && Array.isArray(data.sections)) {
data.sections.forEach(function (section) {
this.sections = data.sections.map(function (section) {
if (!section.schema) {
section.schema = this$1.components[section.name].options.$schema;
}
this$1.create(section);

return new Section(section);
});
}
};
Expand Down Expand Up @@ -6713,7 +6721,7 @@ if (typeof Vue !== 'undefined') {
Vue.use(Builder);
}

Builder.version = '0.0.6';
Builder.version = '0.0.7';
Builder.types = types;

return Builder;
Expand Down
Loading

0 comments on commit 9f96f64

Please sign in to comment.