Guest User

Untitled

a guest
Mar 1st, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. require ([
  2.     'jquery',
  3.     'text',
  4.     'json',
  5.     'domReady',
  6.     'knockout',
  7.     'mainModel',
  8.     'bootstrap',
  9.     'async',
  10.     'async!http://maps.google.com/maps/api/js?key=SNIP&sensor=true&region=es&language=es!callback'
  11. ], function($, ko, mainModel) {
  12.     ko.applyBindings(new mainModel());
  13.     $('.loader').fadeOut({
  14.         complete: function() {
  15.             $('.content-wrapper').fadeIn({
  16.                 complete: function() {
  17.                     console.log("triggering mapShown");
  18.                     $.event.trigger({
  19.                         type: "mapShown"
  20.                     });
  21.                 }
  22.             });
  23.         }
  24.     });
  25. });
Advertisement
Add Comment
Please, Sign In to add comment