mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
Device ready call
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
||||
export function get(obj, path) {
|
||||
for (var i=0, path = path.split('.'), len = path.length; i < len; i++) {
|
||||
for(var i = 0, path = path.split('.'), len = path.length; i < len; i++) {
|
||||
if(!obj) { return null; }
|
||||
obj = obj[path[i]];
|
||||
}
|
||||
return obj;
|
||||
|
||||
Reference in New Issue
Block a user