-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
Hi buddy,
this is not enough:
oldClass = context.Class; // save current Class namespace
context.Class = Class; // bind Class and jsface to global scope
context.jsface = jsface;
jsface.noConflict = function() { context.Class = oldClass; }; // no conflict
noConflict "pattern" should allow to preserve global context from pollution completely, you'll need to backup and return jsface too:
oldClass = context.Class; // save current Class namespace
context.Class = Class; // bind Class and jsface to global scope
var oldJsface = context.jsface;
context.jsface = jsface;
jsface.noConflict = function() {
context.Class = oldClass;
context.jsface = oldJsface;
return jsface;
}; // no conflictNow people can use noConflict like this:
var Class = jsface.noConflict().Class;If you review this comment I can make a PR for you.
Metadata
Metadata
Assignees
Labels
No labels