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:
tomkuk
2014-03-18 17:01:41 +01:00
committed by Andy Joslin
parent 001bcca4fa
commit cd27e1b792

View File

@@ -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 = {};