forked from addyosmani/backbone-mobile-search
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request addyosmani#12 from RainerAtSpirit/master
AMD version.
- Loading branch information
Showing
24 changed files
with
19,310 additions
and
921 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
({ | ||
appDir: "./", | ||
baseUrl: "./", | ||
dir: "../release", | ||
paths: { | ||
'backbone': 'libs/AMDbackbone-0.5.3', | ||
'underscore': 'libs/underscore-1.2.2', | ||
'jquery': 'libs/jQuery-1.7.1', | ||
'json2': 'libs/json2', | ||
'datepicker': 'libs/jQuery.ui.datepicker', | ||
'datepickermobile': 'libs/jquery.ui.datepicker.mobile', | ||
'jquerymobile': 'libs/jquery.mobile-1.0' | ||
}, | ||
optimize: "uglify", | ||
modules: [ | ||
{ | ||
name: "app", | ||
exclude: [ | ||
// If you prefer not to include certain libs exclude them here | ||
] | ||
} | ||
] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,38 @@ | ||
/*! | ||
* Flickly - Backbone jQuery Mobile demo | ||
* http://addyosmani.com | ||
* Copyright (c) 2011 Addy Osmani | ||
* Dual licensed under the MIT and GPL licenses. | ||
*/ | ||
|
||
mobileSearch.views.appview = new AppView; | ||
mobileSearch.routers.workspace = new Workspace(); | ||
mobileSearch.utils.toggleNavigation(false); | ||
Backbone.history.start(); | ||
|
||
/*! | ||
* Flickly - Backbone jQuery Mobile demo | ||
* http://addyosmani.com | ||
* Copyright (c) 2011 Addy Osmani | ||
* Dual licensed under the MIT and GPL licenses. | ||
* | ||
Initialize namespacing | ||
*/ | ||
define( ['backbone', 'views/appview', 'routers/workspace', 'utils', 'ui'], | ||
function( Backbone, AppView, Workspace, utils, ui ) { | ||
// Using ECMAScript 5 strict mode during development. By default r.js will ignore that. | ||
"use strict"; | ||
window.mobileSearch = window.mobileSearch || {}; | ||
|
||
|
||
|
||
window.mobileSearch = { | ||
views: { | ||
appview: new AppView | ||
}, | ||
routers:{ | ||
workspace:new Workspace() | ||
}, | ||
utils: utils, | ||
ui: ui, | ||
defaults:{ | ||
resultsPerPage: 16, | ||
safeSearch: 2, | ||
maxDate:'', | ||
minDate:'01/01/1970' | ||
} | ||
}; | ||
|
||
|
||
window.mobileSearch.utils.toggleNavigation( false ); | ||
Backbone.history.start(); | ||
|
||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,33 @@ | ||
/* | ||
Initialize namespacing | ||
*/ | ||
|
||
var mobileSearch = mobileSearch || {}; | ||
|
||
mobileSearch = { | ||
views:{}, | ||
routers:{ | ||
workspace:{} | ||
}, | ||
utils:{}, | ||
ui:{}, | ||
defaults:{ | ||
resultsPerPage: 16, | ||
safeSearch: 2, | ||
maxDate:'', | ||
minDate:'01/01/1970' | ||
} | ||
}; | ||
|
||
/*! | ||
* Flickly - Backbone jQuery Mobile demo | ||
* http://addyosmani.com | ||
* Copyright (c) 2011 Addy Osmani | ||
* Dual licensed under the MIT and GPL licenses. | ||
* | ||
Initialize namespacing | ||
*/ | ||
|
||
define( ['views/appview', 'router/workspace'], | ||
function( AppView, Workspace ) { | ||
|
||
var mobileSearch = mobileSearch || {}; | ||
|
||
mobileSearch = { | ||
views: new AppView, | ||
routers:{ | ||
workspace:new Workspace() | ||
}, | ||
utils:{}, | ||
ui:{}, | ||
defaults:{ | ||
resultsPerPage: 16, | ||
safeSearch: 2, | ||
maxDate:'', | ||
minDate:'01/01/1970' | ||
} | ||
}; | ||
|
||
mobileSearch.utils.toggleNavigation( false ); | ||
Backbone.history.start(); | ||
|
||
} ); |
Oops, something went wrong.