[FIX] web_editor: fixed typos introduced by 88c0ce0

It seems this.BuildingBlock was changed to this.buildingBlock
by 8c559044a5. Care should be
taken when forward porting code using this.BuildingBlock.
This commit is contained in:
David Monjoie
2015-08-26 16:01:19 +02:00
parent a77f5cf42f
commit b322536aa6
@@ -993,7 +993,7 @@ var Editor = Class.extend({
self.get_parent_block();
setTimeout(function () {
self.BuildingBlock.cover_target(self.$target.data('overlay'), self.$target);
self.buildingBlock.cover_target(self.$target.data('overlay'), self.$target);
},0);
},
@@ -1070,7 +1070,7 @@ var Editor = Class.extend({
this.buildingBlock.parent.rte.historyRecordUndo(this.$target);
this.$target.after($clone);
this.BuildingBlock.call_for_all_snippets($clone, function (editor, $snippet) {
this.buildingBlock.call_for_all_snippets($clone, function (editor, $snippet) {
for (var i in editor.styles){
editor.styles[i].on_clone($snippet);
}
@@ -1085,7 +1085,7 @@ var Editor = Class.extend({
this.buildingBlock.parent.rte.historyRecordUndo(this.$target);
var index = _.indexOf(this.buildingBlock.snippets, this.$target.get(0));
this.BuildingBlock.call_for_all_snippets(this.$target, function (editor, $snippet) {
this.buildingBlock.call_for_all_snippets(this.$target, function (editor, $snippet) {
for (var i in editor.styles){
editor.styles[i].on_remove();
}