~costales/unav/trunk

« back to all changes in this revision

Viewing changes to qml_older/js/oxide.js

  • Committer: costales
  • Date: 2016-03-26 18:42:00 UTC
  • Revision ID: costales.marcos@gmail.com-20160326184200-ua1290uepvd41ysi
Fixed white map in qml

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * uNav http://launchpad.net/unav
3
 
 * Copyright (C) 2015 JkB https://launchpad.net/~joergberroth
4
 
 *
5
 
 * uNav is free software; you can redistribute it and/or modify
6
 
 * it under the terms of the GNU General Public License as published by
7
 
 * the Free Software Foundation; either version 2 of the License, or
8
 
 * (at your option) any later version.
9
 
 * 
10
 
 * uNav is distributed in the hope that it will be useful,
11
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 * GNU General Public License for more details.
14
 
 */
15
 
 
16
 
oxide.addMessageHandler("EXECUTE", function (msg) {
17
 
        var event = new CustomEvent("ExecuteJavascript", {detail: msg.args.code});
18
 
        document.dispatchEvent(event);
19
 
        msg.reply({str: "Event received: " + msg.args.code});
20
 
});