Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit 64c07d0

Browse files
committed
[M] Fix demo bug
1 parent a3c5878 commit 64c07d0

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

demo/demo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ <h1>Marker</h1>
5858
</div>
5959
<h3>How?</h3>
6060
<p class="alert alert-info"><i class="icon-info-sign"></i> Remember that you can pass a variable containing an object to <code>ui-event</code></p>
61-
<pre class="prettyprint linenums" ng-non-bindable>
61+
<pre class="prettyprint">
6262
&lt;h4&gt;Click to add a marker!&lt;/h4&gt;
6363
&lt;p&gt;{{zoomMessage}}&lt;/p&gt;
6464
&lt;ul&gt;

demo/demo.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
$("#map").hide();
33
requireCss('assets/css/demos.css');
44

5+
function initCall(){ console.log("Google maps api initialized.");}
6+
57
requirejs(
68
{
79
paths: {
@@ -10,7 +12,7 @@ requirejs(
1012
shim: {
1113
'ui.map': { deps: [
1214
'https://rawgithub.com/angular-ui/ui-utils/master/modules/event/event.js',
13-
'https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false'
15+
'https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&callback=initCall'
1416
] }
1517
}
1618
},

0 commit comments

Comments
 (0)