Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/umd-wrapper.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var depNames = deps ? _.pluck(deps, 'paramName') : stdDeps;
<% if (exports) { %>
<%= contents %>
<% if (typeof defaultView != 'undefined') { %>
var <%= exports %> = $.alpaca;
<%= exports %>.defaultView = '<%= defaultView %>';
<% } %>
return <%= exports %>;
Expand All @@ -44,6 +45,7 @@ var depNames = deps ? _.pluck(deps, 'paramName') : stdDeps;
<%= contents %>
})();
<% if (typeof defaultView != 'undefined') { %>
var <%= exports %> = $.alpaca;
exports.defaultView = '<%= defaultView %>';
<% } %>
return exports;
Expand Down
2 changes: 2 additions & 0 deletions src/js/AbstractTemplateEngine.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
(function($)
{
var Alpaca = $.alpaca;

Alpaca.AbstractTemplateEngine = Base.extend(
{
constructor: function(id)
Expand Down
6 changes: 4 additions & 2 deletions src/js/Alpaca-async.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
/////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////

(function() {
(function($) {

//'use strict';


var Alpaca = $.alpaca;
var async = {};

Alpaca.series = Alpaca.serial = function(funcs, callback)
Expand Down Expand Up @@ -4675,4 +4677,4 @@
exports.during = whilst$1;
exports.doDuring = doWhilst$1;

})();
})(jQuery);
2 changes: 2 additions & 0 deletions src/js/HandlebarsTemplateEngine.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
(function($, Handlebars, HandlebarsPrecompiled)
{
var Alpaca = $.alpaca;

// runtime cache of precompiled templates keyed by cacheKey
var COMPILED_TEMPLATES = {};

Expand Down
6 changes: 4 additions & 2 deletions src/js/TemplateEngineRegistry.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
(function()
(function($)
{
var Alpaca = $.alpaca;

Alpaca.TemplateEngineRegistry = (function() {

var registry = {};
Expand Down Expand Up @@ -55,4 +57,4 @@
};
})();

})();
})(jQuery);