소스 검색

New method LUNGO.ready()

… when LUNGOJS is ready for work
@soyjavi 14 년 전
부모
커밋
54c5782cef
2개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  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);