From b62ab50a2b86585b33119edacd43dff78db10d4d Mon Sep 17 00:00:00 2001 From: Ryan Kulla Date: Fri, 5 Apr 2013 14:20:36 -0700 Subject: [PATCH] Replaced DOMReady checks with immediately-invoked function expressions that explicitly pass jQuery to the local scope --- architecture-examples/backbone/js/views/app.js | 4 ++-- architecture-examples/backbone/js/views/todos.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/architecture-examples/backbone/js/views/app.js b/architecture-examples/backbone/js/views/app.js index efda414811..aa48486539 100644 --- a/architecture-examples/backbone/js/views/app.js +++ b/architecture-examples/backbone/js/views/app.js @@ -1,7 +1,7 @@ /*global Backbone _ $ ENTER_KEY */ var app = app || {}; -$(function ($) { +(function ($) { 'use strict'; // The Application @@ -126,4 +126,4 @@ $(function ($) { }); } }); -}); +})(jQuery); diff --git a/architecture-examples/backbone/js/views/todos.js b/architecture-examples/backbone/js/views/todos.js index 936501f1a6..c911b791e8 100644 --- a/architecture-examples/backbone/js/views/todos.js +++ b/architecture-examples/backbone/js/views/todos.js @@ -1,7 +1,7 @@ /*global Backbone _ $ ENTER_KEY */ var app = app || {}; -$(function () { +(function ($) { 'use strict'; // Todo Item View @@ -90,4 +90,4 @@ $(function () { this.model.destroy(); } }); -}); +})(jQuery);