mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
8256228e69
MINOR Updated jQuery.concrete references to point to the new "entwine" name git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102695 467b73ca-7a2a-4603-9d3b-597d59a354a9
22 lines
651 B
JavaScript
22 lines
651 B
JavaScript
(function($) {
|
|
|
|
// Adds back concrete methods for backwards compatibility
|
|
$.concrete = $.entwine;
|
|
$.fn.concrete = $.fn.entwine;
|
|
$.fn.concreteData = $.fn.entwineData;
|
|
|
|
// Use addHandler to hack in the namespace.$.concrete equivilent to the namespace.$.entwine namespace-injection
|
|
$.entwine.Namespace.addHandler({
|
|
order: 100,
|
|
bind: function(selector, k, v) { return false; },
|
|
|
|
namespaceMethodOverrides: function(namespace){
|
|
namespace.$.concrete = namespace.$.entwine;
|
|
namespace.injectee.concrete = namespace.injectee.entwine;
|
|
namespace.injectee.concreteData = namespace.injectee.entwineData;
|
|
return {};
|
|
}
|
|
});
|
|
|
|
})(jQuery);
|