[extensions-web] js: Consistently use "define", not "require"



commit 10f514f81a165298f7d7e21a5f75b98bc54f9c11
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Mar 30 21:39:29 2012 -0400

    js: Consistently use "define", not "require"

 sweettooth/static/js/fsui.js        |    3 +--
 sweettooth/static/js/main.js        |    2 +-
 sweettooth/static/js/review-main.js |    2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/sweettooth/static/js/fsui.js b/sweettooth/static/js/fsui.js
index 8aa8ac1..6ed211c 100644
--- a/sweettooth/static/js/fsui.js
+++ b/sweettooth/static/js/fsui.js
@@ -3,8 +3,7 @@
 // FSUI is short for "Filtering and Sorting UI", which contains
 // controls for filtering and sorting the extensions list
 
-require(['jquery', 'dbus!_',
-         'hashParamUtils', 'modal'],
+define(['jquery', 'dbus!_', 'hashParamUtils', 'modal'],
 function($, dbusProxy, hashParamUtils, modal) {
 
     function makeDropdownLink(text) {
diff --git a/sweettooth/static/js/main.js b/sweettooth/static/js/main.js
index 198015d..3c16408 100644
--- a/sweettooth/static/js/main.js
+++ b/sweettooth/static/js/main.js
@@ -1,6 +1,6 @@
 "use strict";
 
-require(['jquery', 'messages', 'modal',
+define(['jquery', 'messages', 'modal',
          'extensions', 'uploader', 'fsui',
          'jquery.cookie', 'jquery.jeditable',
          'jquery.timeago', 'jquery.raty'], function($, messages, modal) {
diff --git a/sweettooth/static/js/review-main.js b/sweettooth/static/js/review-main.js
index 98583ac..96cdeb0 100644
--- a/sweettooth/static/js/review-main.js
+++ b/sweettooth/static/js/review-main.js
@@ -1,6 +1,6 @@
 "use strict";
 
-require(['jquery', 'main', 'review'], function($) {
+define(['jquery', 'main', 'review'], function($) {
     $(document).ready(function() {
         $("#files").reviewify(false);
         $("#diff").reviewify(true);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]