Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 55acc1e

Browse files
jjoekoullaswesleycho
authored andcommitted
Change to consume expression.setup directly from new object
Closes #98
1 parent fd13540 commit 55acc1e

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/tinymce.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ angular.module('ui.tinymce', [])
3737

3838
angular.extend(expression, scope.$eval(attrs.uiTinymce));
3939

40-
// make config'ed setup method available
41-
if (expression.setup) {
42-
var configSetup = expression.setup;
43-
delete expression.setup;
44-
}
45-
4640
options = {
4741
// Update model when calling setContent (such as from the source editor popup)
4842
setup: function(ed) {
@@ -70,8 +64,8 @@ angular.module('ui.tinymce', [])
7064
ed.save();
7165
updateView(ed);
7266
});
73-
if (configSetup) {
74-
configSetup(ed, {
67+
if (expression.setup) {
68+
expression.setup(ed, {
7569
updateView: updateView
7670
});
7771
}

0 commit comments

Comments
 (0)