jquery/jquery-mobile — Issue #2766: Syntax error in docs
Author: easymovet
Created: 2011-10-20 16:28:20+00:00
State: open

I am new to contributing, and very welcome to any corrections in my submitting process. Thanks for the hard work!

There is a syntax error on the docs:

http://jquerymobile.com/demos/1.0rc2/docs/pages/page-scripting.html

```javascript
$( document ).delegate( "pagecreate", "#aboutPage", function() {
alert('A page with an ID of "aboutPage" was just created by jQuery Mobile!');
});
```

per jquery docs: .delegate( selector, eventType, handler )
should be:

```javascript
$( document ).delegate( "#aboutPage", "pagecreate", function() {
alert('A page with an ID of "aboutPage" was just created by jQuery Mobile!');
});
```