mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(scrollView): browserify issue: undefined core
Closes #825 Initialize core object. Running browserify script with required ionic raises an error: Uncaught ReferenceError: core is not defined.
This commit is contained in:
@@ -35,7 +35,7 @@ var IS_EMBEDDED_OBJECT_REGEX = /object|embed/i;
|
||||
|
||||
// Create namespaces
|
||||
if (!global.core) {
|
||||
global.core = { effect : {} };
|
||||
var core = global.core = { effect : {} };
|
||||
|
||||
} else if (!core.effect) {
|
||||
core.effect = {};
|
||||
|
||||
Reference in New Issue
Block a user