Jashka

Untitled

Sep 7th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var app = {
  2.     initialize: function() {
  3.         this.bindEvents();
  4.     },
  5.     bindEvents: function() {
  6.         document.addEventListener('deviceready', this.onDeviceReady, false);
  7.     },
  8.  
  9.     onDeviceReady: function() {
  10.         app.receivedEvent('deviceready');
  11.     },
  12.     receivedEvent: function(id) {
  13.         angular.element(document).ready(function() {
  14.             angular.bootstrap(document);
  15.         });
  16.         console.log('Received Event: ' + id);
  17.     }
  18. };
  19.  
  20. // app.initialize();
  21.  
  22. tplUrl = '/js/components/';
Add Comment
Please, Sign In to add comment