~ubuntu-branches/ubuntu/vivid/unity-webapps-qml/vivid

« back to all changes in this revision

Viewing changes to src/Ubuntu/UnityWebApps/UnityWebAppsUtils.js

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Ubuntu daily release, Olivier Tilloy
  • Date: 2014-06-20 09:37:13 UTC
  • mfrom: (1.1.32)
  • Revision ID: package-import@ubuntu.com-20140620093713-byanepd7nm0fneks
Tags: 0.1+14.10.20140620-0ubuntu1
[ Ubuntu daily release ]
* New rebuild forced

[ Olivier Tilloy ]
* Do not override existing message handlers. Oxide has this nice
  feature that it automatically attaches the instantiated message
  handler to the webview anyway, so this line was useless. (LP:
  #1323735)

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
                '}';
104
104
        var messageHandler = Qt.createQmlObject(script, this.webview);
105
105
        messageHandler.callback = handler;
106
 
        this.webview.messageHandlers = [ messageHandler ];
107
106
    }
108
107
}
109
108