mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Extending $ for namespaced closures in jquery.concrete to allow for native jQuery calling through $ placeholder
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92522 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
9889ba5c4b
commit
0808b164b5
@ -106,11 +106,13 @@ var console;
|
|||||||
namespaces[name] = this;
|
namespaces[name] = this;
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
this.$ = function() {
|
this.$ = function() {
|
||||||
var jq = $.apply(window, arguments);
|
var jq = $.apply(window, arguments);
|
||||||
jq.namespace = self;
|
jq.namespace = self;
|
||||||
return jq;
|
return jq;
|
||||||
}
|
}
|
||||||
|
$.extend(this.$, $);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user