mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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);
|