Merge branch 'MDL-49442-master' of git://github.com/jethac/moodle

This commit is contained in:
Dan Poltawski 2015-03-16 13:31:07 +00:00
commit 3bec364f35
4 changed files with 10 additions and 1 deletions

View File

@ -11,6 +11,9 @@ Y.Handlebars.registerHelper('get_string', function() {
// Pop off the Handlebars object at the end.
args.pop();
// Add the Handlebars hashtable to support get_string arguments.
args.push(arguments[arguments.length - 1].hash);
// Perform the get_string.
return M.util.get_string.apply(this, args);
});

View File

@ -1 +1 @@
YUI.add("moodle-core-handlebars",function(e,t){e.Handlebars.registerHelper("get_string",function(){var t=new e.Array(arguments);return t.pop(),M.util.get_string.apply(this,t)}),e.Handlebars.registerHelper("image_url",function(){var t=new e.Array(arguments);return t.pop(),M.util.image_url.apply(this,t)})},"@VERSION@");
YUI.add("moodle-core-handlebars",function(e,t){e.Handlebars.registerHelper("get_string",function(){var t=new e.Array(arguments);return t.pop(),t.push(arguments[arguments.length-1].hash),M.util.get_string.apply(this,t)}),e.Handlebars.registerHelper("image_url",function(){var t=new e.Array(arguments);return t.pop(),M.util.image_url.apply(this,t)})},"@VERSION@");

View File

@ -11,6 +11,9 @@ Y.Handlebars.registerHelper('get_string', function() {
// Pop off the Handlebars object at the end.
args.pop();
// Add the Handlebars hashtable to support get_string arguments.
args.push(arguments[arguments.length - 1].hash);
// Perform the get_string.
return M.util.get_string.apply(this, args);
});

View File

@ -9,6 +9,9 @@ Y.Handlebars.registerHelper('get_string', function() {
// Pop off the Handlebars object at the end.
args.pop();
// Add the Handlebars hashtable to support get_string arguments.
args.push(arguments[arguments.length - 1].hash);
// Perform the get_string.
return M.util.get_string.apply(this, args);
});