Skip to content

Commit 201602f

Browse files
authored
Merge pull request #702 from HS2-SOLUTIONS/master
Fix Node/Phantomjs/Karma syntax error
2 parents f9581dc + 3c311c2 commit 201602f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ app.config(function($locationProvider) {
3232
});
3333
*/
3434

35-
app.run(['editableOptions', '$httpBackend', 'editableOptions', 'editableThemes', function($rootScope, $httpBackend, editableOptions, editableThemes) {
35+
app.run(['$rootScope', '$httpBackend', 'editableOptions', 'editableThemes', function($rootScope, $httpBackend, editableOptions, editableThemes) {
3636
$rootScope.debug = {};
3737

3838
editableOptions.theme = 'bs3';

src/js/editable-element/directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function($parse, $compile, editableThemes, $rootScope, $document, editableContro
4242
if (getter) { // form exists in scope (above), e.g. editable column
4343
eFormCtrl = getter;
4444
hasForm = true;
45-
} else if (elem && typeof elem.parents === "function" && elem.parents().last().find('form[name='+attrs.eForm+']').length) { // form exists below or not exist at all: check document.forms
45+
} else if (elem && typeof elem.parents === "function" && elem.parents().last().find('form[name="'+attrs.eForm+'"]').length) { // form exists below or not exist at all: check document.forms
4646
// form is below and not processed yet
4747
eFormCtrl = null;
4848
hasForm = true;

0 commit comments

Comments
 (0)