change old addEvent method call by .on()

This commit is contained in:
Ezequiel Bergamaschi 2014-07-14 00:11:56 -03:00
parent fedef3cbac
commit 367a6d7cb7
5 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@
<script type="text/javascript">
var mapId = 'welcome';
$(document).addEvent('loadcomplete', function(resource) {
$(document).on('loadcomplete', function(resource) {
var options = loadDesignerOptions();
var designer = buildDesigner(options);
@ -32,7 +32,7 @@
});
$(document).addEvent('loadcomplete', function(resource) {
$(document).on('loadcomplete', function(resource) {
$("dragImageNode").addEvent('mousedown', function(event) {
event.preventDefault();

View File

@ -20,7 +20,7 @@
<script type="text/javascript">
var mapId = 'welcome';
$(document).addEvent('loadcomplete', function(resource) {
$(document).on('loadcomplete', function(resource) {
// Options has been defined in by a external ile ?
var uri = new URI(window.location);

View File

@ -28,7 +28,7 @@
<script type="text/javascript">
$(document).addEvent('loadcomplete', function (resource) {
$(document).on('loadcomplete', function (resource) {
try {
var mapId = '${mindmap.id}';
// Configure designer options ...

View File

@ -27,7 +27,7 @@
<script type="text/javascript">
var mapId = '${mindmap.id}';
$(document).addEvent('loadcomplete', function (resource) {
$(document).on('loadcomplete', function (resource) {
// Configure designer options ...
var options = loadDesignerOptions();

View File

@ -60,7 +60,7 @@
<script type="text/javascript">
var mapId = '${mindmap.id}';
$(document).addEvent('loadcomplete', function (resource) {
$(document).on('loadcomplete', function (resource) {
// Configure designer options ...
var options = loadDesignerOptions();