Skip to content

Commit

Permalink
Fix multiple directive on same page issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
TerryMooreII committed Apr 2, 2015
1 parent 22ee0f8 commit db83043
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Terry Moore II",
"name": "angular-wysiwyg",
"description": "Angular WYSIWYG",
"version": "1.2.0",
"version": "1.2.1",
"homepage": "https://github.com/TerryMooreII/angular-wysiwyg",
"main": "./dist/angular-wysiwyg.min.js",
"dependencies": {
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": "angular-wysiwyg",
"version": "1.2",
"version": "1.2.1",
"description": "AngularJS WYSIWYG editor",
"main": "./dist/angular-azure-wysiwyg.min.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/angular-wysiwyg.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Requires:

function compileMenu() {
wysiwgGui.setCustomElements(scope.textareaCustomMenu)
var menuDiv = document.querySelector('div.wysiwyg-menu');
var menuDiv = element.children('div.wysiwyg-menu')[0];
menuDiv.appendChild(wysiwgGui.createMenu(scope.textareaMenu));
$compile(menuDiv)(scope);
}
Expand Down Expand Up @@ -499,7 +499,7 @@ Requires:
value: 'format(\'underline\')'
}, {
name: 'ng-class',
value: '{ active: isUnderline }'
value: '{ active: isUnderlined }'
}],
data: [{
tag: 'i',
Expand Down

0 comments on commit db83043

Please sign in to comment.