Procházet zdrojové kódy

New method LUNGO.ready()

… when LUNGOJS is ready for work
@soyjavi před 14 roky
rodič
revize
54c5782cef
2 změnil soubory, kde provedl 5 přidání a 4 odebrání
  1. 3 3
      examples/test-pro/app/events.js
  2. 2 1
      src/Lungo.js

+ 3 - 3
examples/test-pro/app/events.js

@@ -1,8 +1,8 @@
 App.Events = (function(lng, undefined) {
 
-
-    lng.dom().ready(function() {
-
+    lng.ready(function(){
+        console.error('LUNGO.js is ready...');
+        App.Services.mockProfiles();
     });
 
     //Toggle Aside

+ 2 - 1
src/Lungo.js

@@ -29,4 +29,5 @@ LUNGO.Attributes || (LUNGO.Attributes = {});
 LUNGO.Data || (LUNGO.Data = {});
 LUNGO.Sugar || (LUNGO.Sugar = {});
 LUNGO.View || (LUNGO.View = {});
-LUNGO.Device || (LUNGO.Device = {});
+LUNGO.Device || (LUNGO.Device = {});
+LUNGO.ready || (LUNGO.ready = Quo().ready);