Skip to content

Commit 83f7a95

Browse files
authored
Merge pull request #95 from wuwx/patch-1
Update AbstractWidgetFactory.php
2 parents 7c99f18 + b41d721 commit 83f7a95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Factories/AbstractWidgetFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ protected function instantiateWidget(array $params = [])
149149
*/
150150
protected function parseFullWidgetNameFromString($widgetName)
151151
{
152-
return studly_case(str_replace('.', '\\', $widgetName));
152+
return studly_case(str_replace('.', '\\_', $widgetName));
153153
}
154154

155155
/**

tests/AsyncWidgetFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function testItCanRunNestedAsyncWidgetUsingDotNotation()
162162
'<script type="text/javascript">'.
163163
'var widgetTimer1 = setInterval(function() {'.
164164
'if (window.$) {'.
165-
"$('#arrilot-widget-container-1').load('".$this->ajaxUrl('Profile\testNamespace\testFeed')."');".
165+
"$('#arrilot-widget-container-1').load('".$this->ajaxUrl('Profile\TestNamespace\TestFeed')."');".
166166
'clearInterval(widgetTimer1);'.
167167
'}'.
168168
'}, 100);'.

0 commit comments

Comments
 (0)